- 博客(5)
- 资源 (5)
- 收藏
- 关注
原创 SpringBoot(七)Aspect切面
配置pom<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <ar
2017-01-19 17:39:13 2388
原创 SpringBoot(六)开发环境/测试环境和生产环境
SpringMVC中的profile使用在SpringMVC中,如果要用到环境自动切换,可以借助profile来实现,例如:XML配置中:<!-- 开发环境 dev--> <beans profile="dev"> <bean id="beanname" class="com.pz.demo.ProductDevRPC"/> </beans> <beans profile="t
2017-01-19 14:42:59 13948 1
原创 SpringBoot(五)定时器
Springboot的定时器跟SpringMVC注解类似,非常简单例如间隔5秒钟执行一次@Component public class ScheduledTasks { private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss"); @Scheduled(fixedRate = 50
2017-01-19 12:11:26 1775
原创 SpringBoot(四)Contoller&DBSource
Controller常规的方式跟SpringMVC一致,因为SpringBoot一般用来做接口使用,故返回JSON和Restful API的方式较多@RestController : @Controller和@ResponseBody整合使用Swagger来自动生成API在SpringBoot中Maven添加依赖<dependency> <groupId>io.springfox</grou
2017-01-19 11:50:15 586
原创 百度地图
百度地图Demo详情请看 http://lbsyun.baidu.com/index.php?title=jspopular/guide/introduction <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>地理位置测试</title> <script type="text/ja
2017-01-06 14:16:54 438
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人