一、Spring Boot概念: Spring Boot 是所有基于 Spring 开发的项目的起点。Spring Boot 的设计是为了让你尽可能快的跑起来 Spring 应用程序并且尽可能减少你的配置文件。简单来说就是SpringBoot其实不是什么新的框架,它默认配置了很多框架的使用方式,就像 ...
分类:
编程语言 时间:
2019-08-09 01:06:02
阅读次数:
151
启动springboot时,报这个错Exception in thread "main" java.lang.ClassCastException 原因:热部署搞的, <dependency> <groupId>org.springframework.boot</groupId> <artifact ...
分类:
编程语言 时间:
2019-08-08 19:15:02
阅读次数:
100
SpringBoot启动机制(starter机制)核心原理详解
分类:
编程语言 时间:
2019-08-08 17:37:45
阅读次数:
103
springboot和springmvc的区别 spring boot 内嵌tomcat,Jetty和Undertow容器,可以直接运行起来,不在再做部署; spring boot 自动配置,减少了xml文件的大量配置;降低了项目搭建的复杂度 Spring MVC是基于 Servlet 的一个 MV ...
分类:
编程语言 时间:
2019-08-08 13:36:36
阅读次数:
127
springboot注解扫描范围是由@ComponentScan指定的;默认情况下为启动程序所在目录及其子包; 如果需要指定扫描路径,在启动程序中添加修改 ...
分类:
编程语言 时间:
2019-08-08 13:04:19
阅读次数:
129
一.Spring 简史 Spring 2.x 时代:随着 JDK 1.5 带来的注解支持,Spring2.x 可以使用注解对 Bean 进行申明和注入,大大的减少了 xml 配置文件,同时也大大简化了项目的开发。 应用的基本配置用 xml,比如:数据源、资源文件等 业务开发用注解,比如:Servic ...
分类:
编程语言 时间:
2019-08-08 13:01:05
阅读次数:
90
(1)@SpringBootApplication 代表SpringBoot的启动类 (2)@SpringBootConfiguration 通过bean对象来获取配置信息 (3)@Configuration 通过对bean对象的操作,替代spring中xml文件 (4)@EnableAutoCon ...
分类:
编程语言 时间:
2019-08-08 12:53:59
阅读次数:
93
https://www.cnblogs.com/bigdataZJ/p/springboot log.html https://blog.csdn.net/qq_30764991/article/details/80642502 ...
分类:
编程语言 时间:
2019-08-08 10:33:31
阅读次数:
106