#Spring
zhengdaqian010
这个作者很懒,什么都没留下…
展开
-
Invalid cluster node 127.0.0.1.9300 in 127.0.0.1.9300 Must be in the format host
Invalid cluster node 127.0.0.1.9300 in 127.0.0.1.9300! Must be in the format host:port! 错误在此:应该为:原创 2021-12-18 23:47:18 · 7956 阅读 · 0 评论 -
@HystrixCommand 曝红
在pom.xml导入如下依赖即可<dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-javanica</artifactId> <version>RELEASE</version></dependency>如果对你有帮助,请点个赞!!!...原创 2021-12-04 12:23:09 · 480 阅读 · 0 评论 -
Could not autowire. No beans of ‘DiscoveryClient‘ type found.
导错包所致,正确的导包:原创 2021-12-03 16:51:43 · 278 阅读 · 0 评论 -
spring-boot-maven-plugin 曝红的问题
加上版本号,与Springboot的版本号相同即可原创 2021-11-24 20:48:38 · 198 阅读 · 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 · 1495 阅读 · 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 · 695 阅读 · 0 评论 -
Could not find result map com.itheima.dao.OrderDao.Map
此处应为resultType原创 2021-11-13 02:28:30 · 337 阅读 · 0 评论 -
login.html?logout isn‘t a valid redirect URL
箭头所指的位置,不要忘了加/原创 2021-11-07 03:09:29 · 228 阅读 · 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 · 735 阅读 · 0 评论 -
No provider available from registry 127.0.0.1:2181 for service com.itheima.service.
缺少@Service注解原创 2021-10-22 18:32:51 · 975 阅读 · 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 · 5537 阅读 · 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 · 265 阅读 · 0 评论 -
Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody:
出错原因:注解Refence引用的不对,应该引用dubbo的注解原创 2021-10-16 21:55:31 · 326 阅读 · 0 评论 -
Spring整合SpringMVC时:NoClassDefFoundError: org/springframework/core/log/LogDelegateFactory
控制台报错信息:Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; neste原创 2021-09-08 22:10:54 · 395 阅读 · 0 评论 -
SpringMVC:No converter found for return value of type: class com.itheima.pojo.User
SpringMVC自动进行JSON数据转换需要的依赖坐标<!--JSON数据转换支持--><dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.9.0</version></dependency><dep...原创 2021-09-02 02:57:30 · 1124 阅读 · 4 评论 -
Caused by: java.lang.IllegalArgumentException: servlet映射中的<url pattern>[*action]无效
问题出在这个地方正确的写法应该是:原创 2021-08-29 05:21:04 · 1037 阅读 · 0 评论 -
在spring容器应用中出现如下报错:通配符的匹配很全面, 但无法找到元素 ‘context:component-scan‘ 的声明。
一看报错提示,就是beans.xml配置文件中有问题,那就到配置文件中找原因。原配置文件:自已一看少了两行代码http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd修改后的配置文件...原创 2021-08-18 20:25:53 · 102 阅读 · 0 评论