Created
March 21, 2017 23:49
-
-
Save HugoJBello/c39aa04d820aefff8006a4bcc4d9769a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.stereotype.Controller; | |
@Controller | |
public class ServletConfig { | |
@Bean | |
public EmbeddedServletContainerCustomizer containerCustomizer() { | |
return (container -> { | |
container.setPort(8080); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment