
springboot
wolf007
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot之启动加载数据 CommandLineRunner 和ApplicationRunner
Spring Boot 启动加载数据 CommandLineRunner 和ApplicationRunner 在实际应用中,我们会有在项目服务启动的时候就去加载一些数据或做一些事情这样的需求。 为了解决这样的问题,springboot为我们提供了一个方法,通过实现接口 CommandLineRunner 和ApplicationRunner来实现。 Springboot应用程序在启动后,会遍历C原创 2017-06-29 15:44:50 · 798 阅读 · 0 评论 -
springboot之properties
本例将采用maven管理,代码托管在github上,地址:https://github.com/wolf909867753/springboot。 1。创建maven-module,properties,并在pom.xml中添加springboot依赖 project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http转载 2017-06-29 15:37:53 · 855 阅读 · 0 评论 -
springboot之mybaits(非注解方式)
本例将采用maven管理,代码托管在github上,地址:https://github.com/wolf909867753/springboot。 1。创建maven-module,properties,并在pom.xml中添加springboot依赖 project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/转载 2017-06-29 15:52:25 · 429 阅读 · 0 评论 -
springboot之整合mybatis-annotation(注解方式)
本例将采用maven管理,代码托管在github上,地址:https://github.com/wolf909867753/springboot。 1。创建maven-module,properties,并在pom.xml中添加springboot依赖 project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://w转载 2017-06-29 17:09:26 · 7518 阅读 · 0 评论 -
spring boot 整合spring data jpa
本文结构: - 什么是springdata jpa - springboot 整合spring data jpa Spring Data Repository的核心接口是Repository(好像也没什么好惊讶的)。这个接口需要领域类(Domain Class)跟领域类的ID类型作为参数。这个接口主要是让你能知道继承这个类的接口的类型。CrudRepository 供了对被管转载 2017-08-30 11:07:22 · 347 阅读 · 0 评论 -
springboot的缓存技术
引子 我门知道一个程序的瓶颈在于数据库,我门也知道内存的速度是大大快于硬盘的速度的。当我门需要重复的获取相同的数据的时候,我门一次又一次的请求数据库或者远程服务,导致大量的时间耗费在数据库查询或者远程方法的调用上,导致程序性能的恶化,这更是数据缓存要解决的问题。 spring 缓存支持 spring定义了 org.springframework.cache.CacheManager和org.转载 2017-08-30 17:29:27 · 288 阅读 · 0 评论