返回顶部

随笔分类 -  spring

摘要:记一个坑,命令行启动springboot应用时, spring.config.additional-location配置不生效。 其实原因并不在spring.config.additional-location配置上,而是因为把参数放在了最后边,导致命令行将它当作了main方法的参数,而不是java 阅读全文
posted @ 2022-08-31 16:37 雨山木风 阅读(3845) 评论(0) 推荐(0) 编辑
摘要:发现SpringBoot启动时,打印了这样的日志: 2021-10-13 17:20:47.549 [main] INFO ... Bean 'xxx' of type [xxx] is not eligible for getting processed by all BeanPostProces 阅读全文
posted @ 2021-10-13 17:58 雨山木风 阅读(34163) 评论(1) 推荐(1) 编辑
摘要:项目中引用了mybatis,在查询sql时,mybatis输出警告如下: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.iba 阅读全文
posted @ 2021-09-17 14:00 雨山木风 阅读(3268) 评论(0) 推荐(1) 编辑
摘要:grpc莫名其妙报错,具体报错日志如下: 2021-03-13 21:51:18,623:INFO grpc-default-worker-ELG-8-1 (:) - Transport failed io.netty.handler.codec.http2.Http2Exception: HTTP 阅读全文
posted @ 2021-03-16 09:52 雨山木风 阅读(10744) 评论(0) 推荐(0) 编辑
摘要:SpringBoot启动服务器失败,详细的报错日志如下: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.transaction.Transacti 阅读全文
posted @ 2020-04-26 19:35 雨山木风 阅读(26452) 评论(0) 推荐(1) 编辑
摘要:重要的类: org.apache.ibatis.binding.MapperProxy org.apache.ibatis.binding.MapperMethod org.mybatis.spring.SqlSessionTemplate 标注了@Mapper的接口,Spring中注入的实现类为M 阅读全文
posted @ 2020-04-21 10:41 雨山木风 阅读(172) 评论(0) 推荐(0) 编辑
摘要:springboot启动前执行方法的3种方式:实现BeanPostProcessor接口、实现InitializingBean接口、使用@PostConstruct注解 示例: 第一种 实现BeanPostProcessor接口 第二种 实现InitializingBean接口 第三种 使用@Pos 阅读全文
posted @ 2019-12-07 11:48 雨山木风 编辑
摘要:首先搭建sturts2框架,配置pom文件: <properties> <!-- 文件拷贝时的编码 --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEnco 阅读全文
posted @ 2016-11-25 17:11 雨山木风 阅读(926) 评论(0) 推荐(0) 编辑
摘要:在pom中加入代码: 阅读全文
posted @ 2016-11-17 10:43 雨山木风 阅读(462) 评论(0) 推荐(0) 编辑
摘要:12.2 注解实现Bean依赖注入 12.2.1 概述 注解实现Bean配置主要用来进行如依赖注入、生命周期回调方法定义等,不能消除XML文件中的Bean元数据定义,且基于XML配置中的依赖注入的数据将覆盖基于注解配置中的依赖注入的数据。 Spring3的基于注解实现Bean依赖注入支持如下三种注解 阅读全文
posted @ 2016-11-14 09:30 雨山木风 阅读(584) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yangxt/article/details/19970323 阅读全文
posted @ 2016-11-09 10:30 雨山木风 阅读(170) 评论(0) 推荐(0) 编辑
摘要:在applicationContext.xml中添加: java代码: 注意: 实现类上要加注解@Component 定时器的任务方法不能有返回值 配置及启动报错问题参考自 http://stackoverflow.com/questions/30431776/using-scheduled-and 阅读全文
posted @ 2016-10-12 10:04 雨山木风 阅读(21687) 评论(0) 推荐(0) 编辑
摘要:web.xml相关配置 <context-param><param-name>log4jRefreshInterval</param-name><param-value>60000</param-value></context-param><context-param><param-name>con 阅读全文
posted @ 2016-10-12 09:17 雨山木风 阅读(1831) 评论(0) 推荐(1) 编辑
摘要:用ScheduledExecutorService.shutdownNow()。shutdown()方法 还会把后续任务都执行完毕才关闭。参考资料ScheduledExecutorService定时周期执行指定的任务ScheduledExecutorService定时周期执行指定的任务 阅读全文
posted @ 2016-09-20 09:29 雨山木风 阅读(180) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/catoop/article/details/50588851 阅读全文
posted @ 2016-09-18 16:10 雨山木风 阅读(110) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示