1234567891011121314151617181920212223 |
- package org.maxkey;
- 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;
- @Configuration
- @ImportResource(locations={"classpath:spring/maxkey.xml"})
- @PropertySource("classpath:/application.properties")
- public class MaxKeyConfig {
- @Value("${server.port:8080}")
- private int port;
- public int getPort() {
- return port;
- }
- public void setPort(int port) {
- this.port = port;
- }
-
- }
|