
springboot
dankon
这个作者很懒,什么都没留下…
展开
-
自定义类绑定的配置提示
引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> 修改打包插件原创 2021-05-24 15:12:38 · 125 阅读 · 0 评论 -
SpringBoot2学习-03
容器功能 2.1、组件添加 1、@Configuration 基本使用 Full模式与Lite模式 示例 最佳实战 /** * 1、配置类里面使用@Bean标注在方法上给容器注册组件,默认也单实例的 * 2、配置类本身也是组件 * 3、proxyBeanMethods:代理bean的方法 * Full(proxyBeanMethods = true)、 * Lite(proxyBeanMethods = false) * 组件依赖 * */ @Conf原创 2021-05-13 14:08:19 · 74 阅读 · 0 评论 -
SpringBoot2学习-01
Helloworld 1.创建maven项目 添加依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent>原创 2021-05-05 16:07:34 · 79 阅读 · 0 评论