Spring
tiandao321
这个作者很懒,什么都没留下…
展开
-
Spring事务传播机制与隔离级别
Spring事务传播机制与隔离级别原创 2018-06-29 13:07:50 · 6293 阅读 · 0 评论 -
在 SpringBoot 中使用 @EnableScheduling、@Scheduled 轻松实现定时任务
boot定时任务在 main 中开启定时任务的注解 @EnableScheduling@Slf4j@EnableAsync@EnableScheduling@EnableAspectJAutoProxy//注入 Web配置和性能监控Aop等配置@Import(value = {ApolloConfig.class, WebConfig.class, ...原创 2019-02-15 13:35:13 · 494 阅读 · 0 评论 -
SpringBoot Centos6.x 设置为系统服务
1、首先修改pom.xml <executable>true</executable> 这样编译的jar会包含shell脚本 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-pl...原创 2018-09-16 12:18:46 · 543 阅读 · 0 评论 -
Spring & boot注解大全
@ResponseBody是作用在方法上的,@ResponseBody 表示该方法的返回结果直接写入 HTTP response body 中,一般在异步获取数据时使用【也就是AJAX】,在使用 @RequestMapping后,返回值通常解析为跳转路径,但是加上 @ResponseBody 后返回结果不会被解析为跳转路径,而是直接写入 HTTP response body 中。 比如异步获取 j...原创 2018-12-12 15:33:33 · 100 阅读 · 0 评论 -
spring multipart文件上传
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxInMemorySize" value="1024" />//内存缓存最大限时 <!-- 2M --&原创 2018-07-11 12:31:54 · 139 阅读 · 0 评论 -
spring boot注解
Spring Boot 最核心的 25 个注解1、@SpringBootApplication这是 Spring Boot 最最最核心的注解,用在 Spring Boot 主类上,标识这是一个 Spring Boot 应用,用来开启 Spring Boot 的各项能力。其实这个注解就是 @SpringBootConfiguration、@EnableAutoConfigurat...转载 2019-03-01 17:07:53 · 371 阅读 · 0 评论