| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- package com.java110.config.properties.code;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.PropertySource;
- import org.springframework.stereotype.Component;
- /**
- * Created by wuxw on 2017/7/25.
- */
- @Component
- @ConfigurationProperties(prefix = "java110")
- @PropertySource("classpath:java110.properties")
- public class Java110Properties {
- private String mappingPath;
- private String wxAppId;
- private String wxAppSecret;
- private boolean autoReloadComponent = false;
- private String ftpServer;
- private int ftpPort;
- private String ftpUserName;
- private String ftpUserPassword;
- private String ftpPath;
- private String testSwitch;
- public String getMappingPath() {
- return mappingPath;
- }
- public void setMappingPath(String mappingPath) {
- this.mappingPath = mappingPath;
- }
- public String getWxAppId() {
- return wxAppId;
- }
- public void setWxAppId(String wxAppId) {
- this.wxAppId = wxAppId;
- }
- public String getWxAppSecret() {
- return wxAppSecret;
- }
- public void setWxAppSecret(String wxAppSecret) {
- this.wxAppSecret = wxAppSecret;
- }
- public boolean getAutoReloadComponent() {
- return autoReloadComponent;
- }
- public void setAutoReloadComponent(boolean autoReloadComponent) {
- this.autoReloadComponent = autoReloadComponent;
- }
- public String getFtpServer() {
- return ftpServer;
- }
- public void setFtpServer(String ftpServer) {
- this.ftpServer = ftpServer;
- }
- public String getFtpUserName() {
- return ftpUserName;
- }
- public void setFtpUserName(String ftpUserName) {
- this.ftpUserName = ftpUserName;
- }
- public String getFtpUserPassword() {
- return ftpUserPassword;
- }
- public void setFtpUserPassword(String ftpUserPassword) {
- this.ftpUserPassword = ftpUserPassword;
- }
- public void setFtpPort(int ftpPort) {
- this.ftpPort = ftpPort;
- }
- public int getFtpPort() {
- return ftpPort;
- }
- public String getFtpPath() {
- return ftpPath;
- }
- public void setFtpPath(String ftpPath) {
- this.ftpPath = ftpPath;
- }
- public String getTestSwitch() {
- return testSwitch;
- }
- public void setTestSwitch(String testSwitch) {
- this.testSwitch = testSwitch;
- }
- }
|