![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
ligang_csdn
这个作者很懒,什么都没留下…
展开
-
Eclipse Oxygen集成的Gradle的使用
今天下载了Oxygen来使用,不知道这个版本对Gradle的支持是不是好一点了,以前的版本虽然可以用Gradle,但是集成度和Marven比还差不少,于是搜索了一下,找到一篇文章讲到了这个内容,看上去是有进步了,先转载一下。(http://www.vogella.com/tutorials/EclipseGradle/article.html)Using the Gra转载 2017-08-05 10:13:09 · 5252 阅读 · 0 评论 -
SpringBoot 定时任务的使用
(本内容是综合网上的几篇文章的结果)相关的注解一共有两个, @Scheduled–注解在定时任务方法上(有文章说方法所在的class必须是组件,Component或者Service) @EnableScheduling–注解在Application上@SpringBootApplication@EnableSchedulingpublic class App { public s转载 2017-09-14 15:38:49 · 400 阅读 · 0 评论 -
SpringBoot模块对应的包
记录一下在marven或者gradle里面模块对应的package 模块 需要引入的包 JPA org.springframework.boot:spring-boot-starter-data-jpa原创 2017-09-14 15:48:18 · 595 阅读 · 0 评论 -
SpringBoot 定制Jackson ObjectMapper
最近写代码的时候,接口返回的json对象,有些时候null也返回了,于是想改一下,一种方法是在每个DTO对象上加注解,另外也可以设置ObjectMapper,研究了一番,发现修改方法如下:用Config的方法@Bean public Jackson2ObjectMapperBuilderCustomizer customJackson() { return new Jac转载 2017-10-29 13:24:42 · 25197 阅读 · 0 评论