spring boot2016. 3. 10. 10:55
반응형
1
2
3
4
5
6
7
8
9
10
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.stereotype.Component;
 
@Componentpublic class EmbeddedServletConfig implements EmbeddedServletContainerCustomizer{
    @Override    public void customize(ConfigurableEmbeddedServletContainer container) {
        // TODO Auto-generated method stub        
        container.setPort(8080);    \
    }
}
cs


Posted by 1010