Skip to content

Instantly share code, notes, and snippets.

@HugoJBello
Created March 21, 2017 23:49
Show Gist options
  • Save HugoJBello/c39aa04d820aefff8006a4bcc4d9769a to your computer and use it in GitHub Desktop.
Save HugoJBello/c39aa04d820aefff8006a4bcc4d9769a to your computer and use it in GitHub Desktop.
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