lombok修改代码
This commit is contained in:
+6
-15
@@ -1,6 +1,10 @@
|
||||
package com.micro.fast.elasticsearch.config.param;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
||||
import org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoRestTemplateFactory;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -18,6 +22,8 @@ import java.util.ArrayList;
|
||||
@ConfigurationProperties(prefix = "elasticsearch")
|
||||
@AutoConfigureBefore(value = com.micro.fast.elasticsearch.config.ElasticsearchConfig.class)
|
||||
@Validated
|
||||
@Getter
|
||||
@Setter
|
||||
public class ElasticsearchParamConfig {
|
||||
|
||||
/**
|
||||
@@ -32,19 +38,4 @@ public class ElasticsearchParamConfig {
|
||||
@NotNull
|
||||
private ArrayList<String> settings;
|
||||
|
||||
public ArrayList<String> getHosts() {
|
||||
return hosts;
|
||||
}
|
||||
|
||||
public void setHosts(ArrayList<String> hosts) {
|
||||
this.hosts = hosts;
|
||||
}
|
||||
|
||||
public ArrayList<String> getSettings() {
|
||||
return settings;
|
||||
}
|
||||
|
||||
public void setSettings(ArrayList<String> settings) {
|
||||
this.settings = settings;
|
||||
}
|
||||
}
|
||||
|
||||
+4
-55
@@ -1,5 +1,7 @@
|
||||
package com.micro.fast.fastdfs.config.param;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -17,6 +19,8 @@ import javax.validation.constraints.NotNull;
|
||||
@Validated
|
||||
@ConfigurationProperties(prefix = "fastdfs")
|
||||
@AutoConfigureBefore({com.micro.fast.fastdfs.config.FastDFSClientConfig.class})
|
||||
@Setter
|
||||
@Getter
|
||||
public class FastDFSClientParamConfig {
|
||||
|
||||
private String connectTimeoutInSeconds;
|
||||
@@ -34,59 +38,4 @@ public class FastDFSClientParamConfig {
|
||||
@NotNull
|
||||
private String trackerServers;
|
||||
|
||||
public String getConnectTimeoutInSeconds() {
|
||||
return connectTimeoutInSeconds;
|
||||
}
|
||||
|
||||
public void setConnectTimeoutInSeconds(String connectTimeoutInSeconds) {
|
||||
this.connectTimeoutInSeconds = connectTimeoutInSeconds;
|
||||
}
|
||||
|
||||
public String getNetworkTimeoutInSeconds() {
|
||||
return networkTimeoutInSeconds;
|
||||
}
|
||||
|
||||
public void setNetworkTimeoutInSeconds(String networkTimeoutInSeconds) {
|
||||
this.networkTimeoutInSeconds = networkTimeoutInSeconds;
|
||||
}
|
||||
|
||||
public String getCharset() {
|
||||
return charset;
|
||||
}
|
||||
|
||||
public void setCharset(String charset) {
|
||||
this.charset = charset;
|
||||
}
|
||||
|
||||
public String getHttpAntiStealToken() {
|
||||
return httpAntiStealToken;
|
||||
}
|
||||
|
||||
public void setHttpAntiStealToken(String httpAntiStealToken) {
|
||||
this.httpAntiStealToken = httpAntiStealToken;
|
||||
}
|
||||
|
||||
public String getHttpSecretKey() {
|
||||
return httpSecretKey;
|
||||
}
|
||||
|
||||
public void setHttpSecretKey(String httpSecretKey) {
|
||||
this.httpSecretKey = httpSecretKey;
|
||||
}
|
||||
|
||||
public String getHttpTrackerHttpPort() {
|
||||
return httpTrackerHttpPort;
|
||||
}
|
||||
|
||||
public void setHttpTrackerHttpPort(String httpTrackerHttpPort) {
|
||||
this.httpTrackerHttpPort = httpTrackerHttpPort;
|
||||
}
|
||||
|
||||
public String getTrackerServers() {
|
||||
return trackerServers;
|
||||
}
|
||||
|
||||
public void setTrackerServers(String trackerServers) {
|
||||
this.trackerServers = trackerServers;
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -1,7 +1,5 @@
|
||||
package com.micro.fast.mybatis.generator.extend.pojo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* mybatisGenerator所需要的数据库连接配置
|
||||
*/
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ public class PropertiesUtil {
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//3.将输入流写入到properties对象中
|
||||
//3.将输入流写入到properties对象中
|
||||
if (properties==null){
|
||||
properties = new Properties();
|
||||
}
|
||||
|
||||
+4
-7
@@ -8,8 +8,6 @@ import com.micro.fast.security.app.validate.code.pojo.ValidateCode;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.security.web.authentication.AuthenticationFailureHandler;
|
||||
import org.springframework.social.connect.web.HttpSessionSessionStrategy;
|
||||
import org.springframework.social.connect.web.SessionStrategy;
|
||||
import org.springframework.util.AntPathMatcher;
|
||||
import org.springframework.web.context.request.ServletWebRequest;
|
||||
import org.springframework.web.filter.OncePerRequestFilter;
|
||||
@@ -19,7 +17,10 @@ import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 图片验证码校验过滤器
|
||||
@@ -38,10 +39,6 @@ public class ValidateCodeFilter extends OncePerRequestFilter implements Initiali
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* session操作工具类
|
||||
*/
|
||||
private SessionStrategy sessionStrategy = new HttpSessionSessionStrategy();
|
||||
|
||||
private SecurityProperties securityProperties;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.micro.fast.oauth;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.cloud.netflix.feign.EnableFeignClients;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user