logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Springboot 2.0.* 及低版本定时任务@Scheduled多线程配置

1. 首先在springboot启动类上添加@EnableScheduling 注解。import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.schedu...

#tomcat#spring
Spring @Value读取系统环境变量

使用@Value("${环境变量名}")就可以直接读取到操作系统的环境变量(本机windnw10环境),就算在properties中指定同名属性值也会被系统环境变量值所覆盖,所以在平常自定义属性时避免与系统环境变量重名,最好加上前缀。@Value("${path}")private String path;@Value("${classpath}&

Spring @Value读取系统环境变量

使用@Value("${环境变量名}")就可以直接读取到操作系统的环境变量(本机windnw10环境),就算在properties中指定同名属性值也会被系统环境变量值所覆盖,所以在平常自定义属性时避免与系统环境变量重名,最好加上前缀。@Value("${path}")private String path;@Value("${classpath}&

到底了