随笔分类 -  Exception

摘要:@Autowired注入为null的几种情况 1.在应用的Filter或Listener中使用了@Autowired 原因:因为Filter和Listener加载顺序优先于spring容器初始化实例,所以使用@Autowired肯定为null了~~ 解决:用ApplicationContext根据b 阅读全文
posted @ 2021-08-16 20:19 厚我 阅读(411) 评论(0) 推荐(0)
摘要:错误: no service to register for nacos client... 解决方案: 添加applicatin.name = admin spring: cloud: nacos: discovery: server-addr: 120.26.250.164:8848 # 配置n 阅读全文
posted @ 2021-04-14 13:45 厚我 阅读(2450) 评论(0) 推荐(0)
摘要:没有写@ApiImplicitParam( paramType = “path” ) 会提示类型转换String convert to Integer错误 /** * 删除 修改状态 有效/无效 * * @return */ @ApiOperation("修改状态/删除") @ApiImplicit 阅读全文
posted @ 2021-04-13 11:14 厚我 阅读(1694) 评论(0) 推荐(0)
摘要:报错: found bindings for the following environments: - windows 64-bit with node.js 9.x - windows 64-bit with node.js 14.x 解决方法: 1、npm rebuild node-sass 阅读全文
posted @ 2021-04-12 14:37 厚我 阅读(1421) 评论(0) 推荐(0)
摘要:错误: received the value 'exchange_dlx' of type 'longstr' but current is none, 原因:queue已经存在,但是启动时试图设定一个 x-dead-letter-exchange 参数,这和服务器上的定义不一样,server 不允 阅读全文
posted @ 2021-03-31 15:52 厚我 阅读(2504) 评论(0) 推荐(0)
摘要:当测试方法结束,rabbitmq相关的资源也就关闭了,虽然我们的消息发送出去,但异步的ConfirmCallback却由于资源关闭而出现了上面的问题 @Test void testConfirm() throws InterruptedException { //定义回调 rabbitTemplat 阅读全文
posted @ 2021-03-31 10:50 厚我 阅读(414) 评论(0) 推荐(0)
摘要:js代码:function saveUser() { $.ajax({ url: "${pageContext.request.contextPath}/user", type: "POST", data: 'name=zhangsan&age=10' }) } 修改后 function saveU 阅读全文
posted @ 2021-02-21 21:14 厚我 阅读(809) 评论(0) 推荐(0)
摘要://Type interface com.itheima.demo01.one_to_one.CardMapper is not known to the MapperRegistry.//Mybatis注解一定要注册自己写的接口类sqlSessionFactory.getConfiguration 阅读全文
posted @ 2021-01-10 10:53 厚我 阅读(171) 评论(0) 推荐(0)