使用阿里代码规范。规范代码写法
This commit is contained in:
@@ -7,6 +7,10 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
|
||||
/**
|
||||
* ThreadPoolTask 配置类
|
||||
* @author lin
|
||||
*/
|
||||
@Configuration
|
||||
@EnableAsync(proxyTargetClass = true)
|
||||
public class ThreadPoolTaskConfig {
|
||||
@@ -40,6 +44,10 @@ public class ThreadPoolTaskConfig {
|
||||
*/
|
||||
private static final String threadNamePrefix = "wvp-";
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Bean("taskExecutor") // bean的名称,默认为首字母小写的方法名
|
||||
public ThreadPoolTaskExecutor taskExecutor() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.genersoft.iot.vmp.conf;
|
||||
|
||||
import io.swagger.models.auth.In;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -19,7 +20,7 @@ public class UserSetting {
|
||||
|
||||
private Boolean seniorSdp = Boolean.FALSE;
|
||||
|
||||
private Long playTimeout = 18000L;
|
||||
private Integer playTimeout = 18000;
|
||||
|
||||
private int platformPlayTimeout = 60000;
|
||||
|
||||
@@ -55,7 +56,7 @@ public class UserSetting {
|
||||
return seniorSdp;
|
||||
}
|
||||
|
||||
public Long getPlayTimeout() {
|
||||
public Integer getPlayTimeout() {
|
||||
return playTimeout;
|
||||
}
|
||||
|
||||
@@ -83,7 +84,7 @@ public class UserSetting {
|
||||
this.seniorSdp = seniorSdp;
|
||||
}
|
||||
|
||||
public void setPlayTimeout(Long playTimeout) {
|
||||
public void setPlayTimeout(Integer playTimeout) {
|
||||
this.playTimeout = playTimeout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user