Spring Boot
琴 韵
Anything is possibole! 知识创造价值
展开
-
Spring Boot【有与无】【 S1】入门
目录1.简介2.使用Spring Boot的好处3.快速入门3.1.Maven 构建项目【项目结构介绍】【引入 Web模块】【单元测试】【开发环境的调试】热启动配置4.总结5.源码1.简介Spring Boot 是由 Pivotal 团队提供的全新框架,其设计目的是用来简化新 Spring 应用的初始搭建以及开发过程。该框架使用了特定的方式来进行...原创 2019-05-19 13:46:27 · 154 阅读 · 0 评论 -
Spring Boot【有与无】【参考】Spring Boot Starters
参考Table 1. Spring Boot application starters Name Description Pom spring-boot-starter Core starter, including auto-configuration support, logging and YAML Pom ...原创 2019-07-13 11:00:53 · 123 阅读 · 0 评论 -
Spring Boot【参考】【注解】@Configuration 和 @Component
共同点: 都可以声明一个bean注入到ioc 容器中。区别@Configuration可以将内部 通过@Bean 生成的bean 注入同一类的其他bean,如下代码:/测试其他配置bean加载情况@Bean("otherBean")@Order(1)public MyBean otherBean(){ System.out.print('init...原创 2019-08-28 15:44:49 · 386 阅读 · 0 评论 -
Spring Boot【参考】【注解】@ComponentScan
@ComponentScan 告诉Spring 哪个packages 的用注解标识的类 会被spring自动扫描并且装入bean容器。例如,如果你有个类用@Controller注解标识了,那么,如果不加上@ComponentScan,自动扫描该controller,那么该Controller就不会被spring扫描到,更不会装入spring容器中,因此你配置的这个Controller也没...原创 2019-08-28 15:46:24 · 106 阅读 · 0 评论 -
Spring Boot【参考】【注解】@Scheduled
@SpringBootApplication@ComponentScan(basePackages = {"com.scheduler"})public class SchedulerApplication { public static void main(String... pStr) { SpringApplication.run(SchedulerApplication....原创 2019-08-28 15:55:47 · 112 阅读 · 0 评论