摘要:
注入的jar包如果不能直接使用 @autowired 来使用,可以采用如下方法: @Configuration public class DemoConfiguration { @Bean 阅读全文
posted @ 2020-01-07 16:06
星朝
阅读(3663)
评论(0)
推荐(0)
摘要:
! flowchart 箭头图标 勿删 1.SpringBootApplication启动时会默认扫描主类当前包及子包,如果需要扫描主类当前包外的其他包或不扫描当前包下的特定包或类,可通过下列属性实现: Class<?>[] exclude() default {}; String[] 阅读全文
posted @ 2020-01-07 16:04
星朝
阅读(6492)
评论(0)
推荐(0)
摘要:
最近在看spring boot的东西,然后搭建了spring boot的简单项目。但是在spring的入口处加载的时候一直加载不到。最后看了@SpringBootApplication的源码才知道 @ComponentScan 如果不设置basePackage的话 默认会扫描包的所有类,所以最好还是 阅读全文
posted @ 2020-01-07 16:02
星朝
阅读(3960)
评论(0)
推荐(0)
摘要:
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1. 前言 昨天在 Collection移除元素操作 相关的文章中提到了 Collectors 。相信很多同学对这个比较感兴趣,那我们今天就来研究一下 Collectors 。 2. Collectors 的作 阅读全文
posted @ 2020-01-07 09:51
星朝
阅读(1365)
评论(0)
推荐(0)