Skip to content

Instantly share code, notes, and snippets.

View phuonghuynh's full-sized avatar
🐷
lazy

phuong phuonghuynh

🐷
lazy
View GitHub Profile
@phuonghuynh
phuonghuynh / WebConfig.java
Created November 21, 2014 06:46
Default welcome file without web.xml
public class WebConfig extends WebMvcConfigurerAdapter {
@Resource
private Environment environment;
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
configurer.enable();
}
public void addViewControllers(ViewControllerRegistry registry) {