#Mybatis
zhengdaqian010
这个作者很懒,什么都没留下…
展开
-
org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: main
在使用springcloud的配置中心的配置文件时,会遇到这样的情况:org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: main,虽然不影响程序的运行,但是对我一个追求完美的程序员来说,有点这样的小bug也实在看不下去。因为默认的标签是main, 而我们在配置文件中配置的标签不是main,所以就会报这样的小bug.我们只需要把默认的label,改成我们在配置文件中.原创 2021-12-11 18:01:09 · 2654 阅读 · 1 评论 -
Could not autowire. No beans of ‘DiscoveryClient‘ type found.
导错包所致,正确的导包:原创 2021-12-03 16:51:43 · 255 阅读 · 0 评论 -
spring-boot-maven-plugin 曝红的问题
加上版本号,与Springboot的版本号相同即可原创 2021-11-24 20:48:38 · 171 阅读 · 0 评论 -
No provider available from registry 127.0.0.1:2181 for service com.itheima.service.ReportService on
No provider available from registry 127.0.0.1:2181 for service com.itheima.service.ReportService on consumer 192.168.181.1 use dubbo version 2.6.2, please check status of providers(disabled, not registered or in blacklist).落下了:@Service...原创 2021-11-21 06:47:01 · 1453 阅读 · 1 评论 -
运行时异常:org.springframework.security.access.AccessDeniedException: Access is denied
在项目中集成spring-security安全框架时,运行时异常:org.springframework.security.access.AccessDeniedException: Access is denied在每个axios请求之前加上这句话后就好了 //允许携带认证cookies,axios.defaults.withCredentials=true;...原创 2021-11-15 18:48:16 · 671 阅读 · 0 评论 -
Could not find result map com.itheima.dao.OrderDao.Map
此处应为resultType原创 2021-11-13 02:28:30 · 311 阅读 · 0 评论 -
login.html?logout isn‘t a valid redirect URL
箭头所指的位置,不要忘了加/原创 2021-11-07 03:09:29 · 202 阅读 · 0 评论 -
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or n
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 3本来只想要一个结果,结果出现了太多得结果把数据库中重复得数据,删除就好了!...原创 2021-10-22 22:30:55 · 692 阅读 · 0 评论 -
No provider available from registry 127.0.0.1:2181 for service com.itheima.service.
缺少@Service注解原创 2021-10-22 18:32:51 · 939 阅读 · 0 评论 -
NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError:
NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: XXXXXXX嵌套Servlet异常,大部分情况是,依赖嵌套,E依赖D,D依赖C,C依赖B,B依赖A,且A中导入了依赖管理,这样只需在E中导入依赖即可,中间的就不需要再导入依赖,中间的再导入E中已经导入的依赖,这个时候运行程序就会报嵌套异常...原创 2021-10-22 18:28:13 · 5016 阅读 · 0 评论 -
Error creating bean with name ‘jobTrigger‘ defined in class path resource [spring-job.xml]: Invocati
Error creating bean with name 'jobTrigger' defined in class path resource [spring-job.xml]: Invocation of init method failed; nested exception is java.text.ParseException: Unexpected end of expression.设置Quatz定时任务出现的一个小问题小失误酿打错,*和?中间应有空格...原创 2021-10-18 20:35:46 · 247 阅读 · 0 评论 -
Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody:
出错原因:注解Refence引用的不对,应该引用dubbo的注解原创 2021-10-16 21:55:31 · 306 阅读 · 0 评论 -
Mybatis:Cannot find class: com.mysql.cj.jdbc.Driver
与数据库驱动有关:改成:问题完美解决原创 2021-09-07 18:05:45 · 188 阅读 · 0 评论 -
java: 找不到符号 符号: 类 Account 位置: 程序包 com.itheima.pojo
解决方法:原创 2021-08-12 18:08:44 · 2210 阅读 · 0 评论 -
解决Mybatis中SqlMapConfig.xml配置文件中<configuration>标签报错的问题
解决方案是:在 Mybatis 的配置文件中,各 configuration 的属性必须按照规定的先后顺序进行排序,否则就会出错properties settings typeAliases typeHandlers objectFactory plugins environments databaseProvicer mappers...原创 2021-08-10 17:37:51 · 711 阅读 · 0 评论