码迷,mamicode.com
首页 >  
搜索关键字:spring-boot    ( 7186个结果
spring-boot 整合redis作为数据缓存
添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> </dependency> Redis配置 package com.wis ...
分类:编程语言   时间:2016-08-09 02:05:39    阅读次数:748
spring boot 添加拦截器
构建一个spring boot项目。 添加拦截器需要添加一个configuration 为了方便扫描位置,我们可以写一个接口或者入口类Application放置于最外一层的包内,这样就会扫描该类以及子包的类。 1 resources配置 在没有配置这个类的时候,我们可以在application.ym ...
分类:编程语言   时间:2016-08-03 23:49:43    阅读次数:530
Spring boot 提高篇
Spring boot 提高篇 上篇文章介绍了Spring boot初级教程:构建微服务:Spring boot 入门篇,方便大家快速入门、了解实践Spring boot特性;本篇文章接着上篇内容继续为大家介绍spring boot的其它特性(有些未必是spring boot体系桟的功能,但是是sp ...
分类:编程语言   时间:2016-08-03 23:40:52    阅读次数:263
40. Testing Prev Part IV. Spring Boot features
40. Testing 40. Testing 40. Testing 40. Testing Spring Boot provides a number of utilities and annotations to help when testing your application. Test ...
分类:编程语言   时间:2016-07-31 15:46:56    阅读次数:280
spring boot 拦截器
@SpringBootApplicationpublic class Application extends WebMvcConfigurerAdapter { public static void main(String[] args) { //String[] arss= environment ...
分类:编程语言   时间:2016-07-24 20:53:38    阅读次数:374
spring-boot支持双数据源mysql+mongo
这里,首先想说的是,现在的web应用,处理的数据对象,有结构化的,也有非结构化的。同时存在。但是在spring-boot操作数据库的时候,若是在properties文件中配置数据源的信息,通过默认配置加载数据源的话,往往只会启动一个。 我出于想弄清如何配置数据源的目的,在这里demo一个配置两个数据 ...
分类:数据库   时间:2016-07-24 01:46:08    阅读次数:803
Spring boot Mybatis
最近刚接触Spring boot,正是因为他的及简配置方便开发,促使我下定决心要用它把之前写的项目重构,那么问题来了,spring boot怎么整合mybatis呢,下面几个配置类来搞定。 在我的代码当中是实现了数据库读写分离的,所以代码仅做参考,如有需要可以加我微信:benyzhous 【后续更新 ...
分类:编程语言   时间:2016-07-24 01:46:04    阅读次数:223
Spring Boot MyBatis 连接数据库
最近比较忙,没来得及抽时间把MyBatis的集成发出来,其实mybatis官网在2015年11月底就已经发布了对SpringBoot集成的Release版本,Github上有代码:https://github.com/mybatis/mybatis-spring-boot 前面对JPA和JDBC连接 ...
分类:数据库   时间:2016-07-24 01:39:49    阅读次数:746
Spring Boot MyBatis 通用Mapper插件集成
看本文之前,请确保你已经在SpringBoot中集成MyBatis,并能正常使用。如果没有,那么请先移步 http://blog.csdn.net/catoop/article/details/50553714 做了解后,再按本文步骤操作。 使用MyBatis在我们通过xml集中配置SQL,并通过创 ...
分类:移动开发   时间:2016-07-24 00:32:12    阅读次数:1350
Spring Boot的一个测试用例
...
分类:编程语言   时间:2016-07-23 19:45:22    阅读次数:659
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!