上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页

2018年12月28日

Spring boot 官网学习笔记 - Spring DevTools 介绍

摘要: 想要使用devtools支持,只需使用dependencies将模块依赖关系添加到你的构建中 Spring Boot 支持的一些库中会使用缓存来提高性能。例如模版引擎将缓存编译后的模板,以避免重复解析模板文件。 此外,Spring MVC可以在服务静态资源时向响应中添加HTTP缓存头。 虽然缓存在生 阅读全文

posted @ 2018-12-28 21:55 手握太阳 阅读(652) 评论(0) 推荐(0) 编辑

2018年12月27日

Spring boot 梳理 - Spring boot自动注册DispatcherServlet

摘要: 首先,DispatcherServlet被作为一个普通Bean被定义和注册到容器; 然后,又定义了另外一个ServletRegistrationBean bean用来添加该DispatcherServlet bean到ServletContext; 1.@WebServlet注解: 这个是javae 阅读全文

posted @ 2018-12-27 22:53 手握太阳 阅读(4761) 评论(0) 推荐(0) 编辑

Spring boot - 梳理 - 根本上说,Spring Boot项目只不过是一个普通的Spring项目,只是使用了Spring Boot的起步依赖和自动配置

摘要: 根本上说,Spring Boot项目只不过是一个普通的Spring项目,只是使用了Spring Boot的起步依赖和自动配置 阅读全文

posted @ 2018-12-27 22:25 手握太阳 阅读(258) 评论(0) 推荐(0) 编辑

Spring boot 梳理 - SpringBoot中注入ApplicationContext对象的三种方式

摘要: 直接注入(Autowired) @Configuration public class OAConfig { @Autowired private ApplicationContext applicationContext; @Bean public PersonUtils personUtil(){ boolean bool=app... 阅读全文

posted @ 2018-12-27 22:06 手握太阳 阅读(8658) 评论(0) 推荐(0) 编辑

2018年12月26日

Spring boot 官网学习笔记 - Auto-configuration(@SpringBootApplication、@EnableAutoConfiguration、@Configuration)

摘要: Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added. For exam 阅读全文

posted @ 2018-12-26 20:28 手握太阳 阅读(429) 评论(0) 推荐(0) 编辑

2018年12月24日

Spring boot 官网学习笔记 - Configuration Class(@import)

摘要: 推荐使用 Java-based configuration ,也可以使用xml we generally recommend that your primary source be a single @Configuration class. Usually the class that defines the main method is a good candidate as the pr... 阅读全文

posted @ 2018-12-24 21:27 手握太阳 阅读(278) 评论(0) 推荐(0) 编辑

2018年12月23日

Spring 梳理 - AOP那些学术概念—通知、增强处理连接点(JoinPoint)切面(Aspect)

摘要: Spring AOP那些学术概念—通知、增强处理连接点(JoinPoint)切面(Aspect) 1、我所知道的AOP 初看起来,上来就是一大堆的术语,而且还有个拉风的名字,面向切面编程,都说是OOP的一种有益补充等等。一下让你不知所措,心想着:管不得很多人都和我说AOP多难多难。当我看进去以后,我 阅读全文

posted @ 2018-12-23 21:56 手握太阳 阅读(420) 评论(0) 推荐(0) 编辑

CAS详细登录流程(转)

摘要: 转:https://www.cnblogs.com/lihuidu/p/6495247.html 4、CAS的详细登录流程 上图是3个登录场景,分别为:第一次访问www.qiandu.com、第二次访问、以及登录状态下第一次访问mail.qiandu.com。 下面就详细说明上图中每个数字标号做了什 阅读全文

posted @ 2018-12-23 21:38 手握太阳 阅读(2728) 评论(0) 推荐(0) 编辑

2018年12月21日

Spring boot 梳理 - 代码结构(Main类的位置)

摘要: Spring boot 对代码结构无特殊要求,但有个套最佳实践的推荐 不要使用没有包名的类。没有包名时,@ComponentScan, @EntityScan, or @SpringBootApplication 可能会有问题。 Main类在包路径中的位置:强烈建议main类放在包的根路径上。We generally recommend that you locate your main app... 阅读全文

posted @ 2018-12-21 22:34 手握太阳 阅读(1702) 评论(0) 推荐(0) 编辑

2018年12月18日

Spring Data JPA 梳理 - 使用方法

摘要: 1.下载需要的包。 需要先 下载Spring Data JPA 的发布包(需要同时下载 Spring Data Commons 和 Spring Data JPA 两个发布包,Commons 是 Spring Data 的公共基础包),并把相关的依赖 JAR 文件加入到 CLASSPATH 中。 2 阅读全文

posted @ 2018-12-18 22:17 手握太阳 阅读(374) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 24 下一页

导航