1.定位main应用类,Spring Boot应用的入口 我们通常建议将main应用类放在位于其他类上面的根包( root package) 中。 通常使用 @EnableAutoConfiguration 注解main类, 并且暗地里为某些项定义了一个基础“search package”。 例如, ...
分类:
编程语言 时间:
2016-09-20 13:50:00
阅读次数:
164
这里先贴一下IBM上的介绍 http://www.ibm.com/developerworks/cn/java/j-lo-rest-assured/index.html Java 程序员常常借助于 JUnit 来测试自己的 REST API,不,应该这样说,Java 程序员常常借助于 JUnit 来 ...
分类:
编程语言 时间:
2016-09-19 14:30:35
阅读次数:
339
SpringBoot基础教程1-SpringToolSuite工具的安装SpringBoot基础教程2-RESTfullAPI简单项目的快速搭建SpringBoot基础教程3-配置文件详解:Properties和YAMLSpringBoot基础教程4-配置文件-多环境配置SpringBoot基础教程5-日志配置-logback和log4j2源码地址:https://github.com/r..
分类:
编程语言 时间:
2016-09-18 21:31:21
阅读次数:
589
Spring Boot基础教程1-Spring Tool Suite工具的安装 Spring Boot基础教程2-RESTfull API简单项目的快速搭建 Spring Boot基础教程3-配置文件详解:Properties和YAML Spring Boot基础教程4-配置文件-多环境配置 Spr ...
分类:
编程语言 时间:
2016-09-18 13:42:35
阅读次数:
414
http://docs.spring.io/spring-boot/docs/current/api/overview-summary.html http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#auto-con ...
分类:
编程语言 时间:
2016-09-17 19:06:57
阅读次数:
1457
1 # 2 # COMMON SPRING BOOT PROPERTIES 3 # 4 # This sample file is provided as a guideline. Do NOT copy it in its 5 # entirety to your own application. ...
分类:
移动开发 时间:
2016-09-17 13:18:24
阅读次数:
282
Spring Boot 使用事务非常简单,首先使用注解 @EnableTransactionManagement 开启事务支持后,然后在访问数据库的Service方法上添加注解 @Transactional 便可。 关于事务管理器,不管是JPA还是JDBC等都实现自接口 PlatformTransa ...
分类:
其他好文 时间:
2016-09-17 00:19:22
阅读次数:
1663
原文:http://www.cnblogs.com/azhqiang/p/5609615.html EnableAsync注解的意思是可以异步执行,就是开启多线程的意思。可以标注在方法、类上。 为了让@Async注解能够生效,还需要在Spring Boot的主程序中配置@EnableAsync,如下 ...
分类:
编程语言 时间:
2016-09-16 22:45:03
阅读次数:
603
http://www.infoq.com/cn/articles/microframeworks1-spring-boot/ http://blog.csdn.net/zgmzyr/article/details/49837123 http://www.zhihu.com/question/3948 ...
分类:
编程语言 时间:
2016-09-16 00:07:21
阅读次数:
206
接 MyBatis-Spring 使用总结 。 首先,MyBatis-Spring-Boot-Starter will: Autodetect an existing DataSource. Will create and register an instance of a SqlSessionFa ...
分类:
编程语言 时间:
2016-09-15 06:17:56
阅读次数:
234