摘要:
Lombok:简化开发,自动生成Bean的get,set方法,编译时才会生成,缺点,侵入性太强,大工程最好不要使用 1.引入依赖: <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </ 阅读全文
posted @ 2021-10-09 11:45
花生又叫二花深
阅读(37)
评论(0)
推荐(0)
摘要:
@SpringBootConfiguration注解是以下注解构成: @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan( excludeFilters = {@Filter( type = FilterType.CUST 阅读全文
posted @ 2021-10-09 11:32
花生又叫二花深
阅读(51)
评论(0)
推荐(0)
摘要:
@Configuration 用于告诉SpringBoot这是一个配置类,它本事也是一个配置文件,配置类本身也是一个组件 属性:proxyBeanMethods = true||false 如果组件有依赖,用ture 如果组件无依赖,用false @Bean在配置类里面来对方法给容器注册组件,默认是 阅读全文
posted @ 2021-10-09 01:58
花生又叫二花深
阅读(96)
评论(0)
推荐(0)
摘要:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent>上面的 阅读全文
posted @ 2021-10-09 00:40
花生又叫二花深
阅读(32)
评论(0)
推荐(0)

浙公网安备 33010602011771号