会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132579个问题
Python 全系列/第三阶段:Python 网络与并发编程/并发编程 25952楼
JAVA 全系列/第一阶段:JAVA 快速入门/面向对象详解和JVM底层内存分析 25953楼
Python 全系列/第十阶段:Flask百战电商后台项目/Flask百战电商后台项目 25954楼

在启动start.bat报错:

Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0

log4j:WARN No appenders could be found for logger (com.alibaba.dubbo.common.logger.LoggerFactory).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.monitor.MonitorService': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

        at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308)

        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947)

        at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:701)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)

        at com.alibaba.dubbo.container.spring.SpringContainer.start(SpringContainer.java:50)

        at com.alibaba.dubbo.container.Main.main(Main.java:80)

Caused by: java.lang.ExceptionInInitializerError

        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)

        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)

        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)

        ... 18 more

Caused by: java.lang.IllegalStateException: fail to create adaptive instance: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: java.io.IOException: invalid constant type: 18

        at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:459)

        at com.alibaba.dubbo.config.ServiceConfig.<clinit>(ServiceConfig.java:60)

        ... 26 more

Caused by: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: java.io.IOException: invalid constant type: 18

        at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:723)

        at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)

        ... 27 more

Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18

        at javassist.CtClassType.getClassFile2(CtClassType.java:204)

        at javassist.CtClassType.subtypeOf(CtClassType.java:304)

        at javassist.compiler.MemberResolver.compareSignature(MemberResolver.java:248)

        at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:120)

        at javassist.compiler.MemberResolver.lookupMethod(MemberResolver.java:97)

        at javassist.compiler.MemberCodeGen.atMethodCallCore(MemberCodeGen.java:562)

        at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:524)

        at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244)

        at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)

        at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:497)

        at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244)

        at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)

        at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:497)

        at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244)

        at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)

        at javassist.compiler.MemberCodeGen.atCallExpr(MemberCodeGen.java:497)

        at javassist.compiler.JvstCodeGen.atCallExpr(JvstCodeGen.java:244)

        at javassist.compiler.ast.CallExpr.accept(CallExpr.java:46)

        at javassist.compiler.CodeGen.atBinExpr(CodeGen.java:964)

        at javassist.compiler.ast.BinExpr.accept(BinExpr.java:41)

        at javassist.compiler.JvstCodeGen.atMethodArgs(JvstCodeGen.java:358)

        at javassist.compiler.MemberCodeGen.atMethodCallCore(MemberCodeGen.java:556)

        at javassist.compiler.MemberCodeGen.atNewExpr(MemberCodeGen.java:302)

        at javassist.compiler.ast.NewExpr.accept(NewExpr.java:73)

        at javassist.compiler.CodeGen.compileExpr(CodeGen.java:230)

        at javassist.compiler.CodeGen.atThrowStmnt(CodeGen.java:628)

        at javassist.compiler.CodeGen.atStmnt(CodeGen.java:365)

        at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)

        at javassist.compiler.CodeGen.atIfStmnt(CodeGen.java:391)

        at javassist.compiler.CodeGen.atStmnt(CodeGen.java:355)

        at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)

        at javassist.compiler.CodeGen.atStmnt(CodeGen.java:351)

        at javassist.compiler.ast.Stmnt.accept(Stmnt.java:50)

        at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:292)

        at javassist.compiler.CodeGen.atMethodDecl(CodeGen.java:274)

        at javassist.compiler.ast.MethodDecl.accept(MethodDecl.java:44)

        at javassist.compiler.Javac.compileMethod(Javac.java:169)

        at javassist.compiler.Javac.compile(Javac.java:95)

        at javassist.CtNewMethod.make(CtNewMethod.java:74)

        at javassist.CtNewMethod.make(CtNewMethod.java:45)

        at com.alibaba.dubbo.common.compiler.support.JavassistCompiler.doCompile(JavassistCompiler.java:119)

        at com.alibaba.dubbo.common.compiler.support.AbstractCompiler.compile(AbstractCompiler.java:59)

        at com.alibaba.dubbo.common.compiler.support.AdaptiveCompiler.compile(AdaptiveCompiler.java:46)

        at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:739)

        at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)

        at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)

        ... 28 more

Caused by: java.io.IOException: invalid constant type: 18

        at javassist.bytecode.ConstPool.readOne(ConstPool.java:1113)

        at javassist.bytecode.ConstPool.read(ConstPool.java:1056)

        at javassist.bytecode.ConstPool.<init>(ConstPool.java:150)

        at javassist.bytecode.ClassFile.read(ClassFile.java:765)

        at javassist.bytecode.ClassFile.<init>(ClassFile.java:109)

        at javassist.CtClassType.getClassFile2(CtClassType.java:191)

        ... 73 more

请按任意键继续. . .


JAVA 全系列/第十一阶段:分布式RPC调用和分布式文件存储/Dubbo 25957楼
JAVA 全系列/第二阶段:JAVA 基础深化和提高/IO 流技术(旧) 25958楼
Python 全系列/第二阶段:Python 深入与提高/GUI编程(隐藏) 25959楼
JAVA 全系列/第一阶段:JAVA 快速入门/数组和数据存储 25960楼

<template slot-scope="scope">
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
          >
            删除
          </el-button>
        </template>
handleDelete(index, row) {
      // console.log(index, row);
      api
        .deleteItemById({
          id: row.id,
        })
        .then((res) => {
          this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
          })
            .then(() => {
              if (res.data.status === 200) {
                this.$message({
                  type: "success",
                  message: "删除成功!",
                });
                //视图重绘
                this.http(1);
              } else {
                this.$message({
                  type: "error",
                  message: "删除失败!",
                });
              }
            })
            .catch(() => {
              this.$message({
                type: "info",
                message: "已取消删除",
              });
            });
        })
        .catch((error) => {
          console.log(error);
        });
    },

老师,这个视频里面从8分50秒开始的部分:视频中的删除功能引用了element组件库中的MessageBox弹窗提示,上面是视频中讲课老师编写的代码。但是我发现按照这样顺序写下来的话并没有起到     在删除数据前多做一次判断的作用,不管点击确定还是取消,后台数据其实都已经删除了。

WEB前端全系列/第二十阶段:Vue2企业级项目(旧)/易购商品后台管理系统 25961楼

image.png

JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 25962楼
JAVA 全系列/第十八阶段:亿级高并发电商项目_架构/编码(旧)/电商:基于SpringSecurity实现后台登录功能 25963楼

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				//1.type属性等于text
				//$("input[type=text]").css("background-color","red")
				
				//2.name属性用z开头的
				$("input name^=z").css("background-color","pink")
				
				//3.name属性是d结尾的
				$("input[name&d]").css("background-color","red")
			})
		</script>
	</head>
	<body>
		<center>
		<h3>注册页面</h3>
		<hr />
		<form action="" method="get" onsubmit="return zong()">
		<table border="1px">
			<tr height="35px">
				<td width="150px">用户名:</td>
				<td width="400px">
					<input type="text" name="zuname" id="uname" value="" alt="用户名" "/>
				    <span id="uname_span">*用户名必须是3-5位的汉字</span>
				</td>
			</tr>
			<tr height="35px">
				<td>密码:</td>
				<td>
					<input type="password" name="zpwd" id="pwd" value="" alt="密码"/>
					<span id="pwd_span"></span>
					
				</td>
			</tr>
			<tr height="35px">
				<td>手机号:</td>
				<td>
					<input type="text" name="zphone" id="phone" value="" alt="手机号" />
					<span id="phone_span"></span>
				</td>
			</tr>
			<tr height="35px">
				<td>邮箱:</td>
				<td>
					<input type="text" name="email" id="email" value="" alt="邮箱" />
				    <span id="email_span"></span>
				</td>
			</tr>
			<tr height="35px">
				<td>颜色:</td>
				<td>
					<input type="color" name="scolor" id=""  />
				</td>
			</tr>
			<tr height="35px">
				<td>爱好:</td>
				<td>
					<input type="checkbox" name="fav" id="" value="1" />唱歌
					<input type="checkbox" name="fav" id="" value="2" />睡觉
					<input type="checkbox" name="fav" id="" value="3"  />LOL<br />
					<input type="checkbox" name="fav" id="" value="4"  />旅游
					<input type="checkbox" name="fav" id="" value="5" />高尔夫
					<input type="checkbox" name="fav" id="" value="6" />篮球
					
				</td>
			</tr>
			<tr height="35px">
				<td>籍贯:</td>
				<td>
					<select name="adress" id="sel" onchange="checkAdress()">
						<option value="0">--请选择--</option>
						<option value="1">河南</option>
						<option value="2">湖南</option>
						<option value="3">海南</option>
						<option value="4">云南</option>
					</select>
					
					<span id="sel_span"></span>
				</td>
			</tr>
			
			<tr height="35px">
				<td>验证码</td>
				<td>
					<input type="number" name="" id="yzm" value=""/>
					<span id="yzm_span"></span>
					<span id="yzm2_span"></span>
				</td>
			</tr>
			
			<tr height="35px">
				<td>个人介绍:</td>
				<td>
					<textarea name="intro" rows="8" cols="30"></textarea>
				</td>
			</tr>
			
			<tr height="35px">
				<td colspan="2" align="center">
					<input type="checkbox" name="" id="check" value="">是否同一本公司协议
				</td>
			</tr>
			<tr height="35px">
				<td colspan="2" align="center">
					<input type="submit" id="sub" value="注册" disabled="true"/>
				</td>
			</tr>
		</table>
		</form>
		</center>
		
		
	</body>
</html>


这两个怎么不执行了?

                                //2.name属性用z开头的
				$("input name^=z").css("background-color","pink")
				
				//3.name属性是d结尾的
				$("input[name&d]").css("background-color","red")


JAVA 全系列/第四阶段:网页编程和设计/Jquery(旧) 25965楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637