This commit is contained in:
shimingxy
2019-09-20 00:09:08 +08:00
parent 7792e31dfa
commit 31d2e69018
72 changed files with 2062 additions and 1101 deletions

View File

@@ -1,10 +1,22 @@
package org.maxkey;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Configuration
@Component
@PropertySource("classpath:/application.properties")
public class MaxKeyMgtConfig {
@Value("${server.port:8080}")
private int port;
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
}