FrameWork :SpringBoot

SpringBoot入门

一、定义

定义:

功能:配置装配:xml转变注解

二、注解

入口类:* application   mian()

程序           @SpringBootApplication

配置           @SpringBootConfiguration

配置对比

对比 Spring SpringBoot

一、

一、注解

@Configuration    类

@Bean                  方法

二、案例

pom:<dependency>springmvc-webxml+  c3p0

           <plugin>tocmat7-maven-plugin

POJO\Dao\Service\Test

ServiceImpl        @Service           @Autowired

SpringConfig      @Configuration  @ComponentScan@Bean

三、加载其他配置

[1] properties:  @PropertySource(value = {"classpath:jdbc.properties"}) 

[2] 数据库连接:@Value               @Bean

[3]  xml:            @ImportResurce(value={"xml1","xml2"})

一、注解

@SpringBootApplication

二、案例

pom:<dependency>spring-boot-starter-web

         <parent>spring-boot-starter-parent

         <plugin>spring-boot-maven-plugin

Application:@SpringBootApplication\@Configuration\@Controller

@RequestMapping\ResponseBody

Test:    SpringApplication.run(Application.Class,args);

  SSM SBM
     

SpringBoot中级

SpringBoot高级

猜你喜欢

转载自blog.csdn.net/ddhmbbklyk2018/article/details/82352775