1
This commit is contained in:
commit
dbe4be7dd5
12 files changed
+388
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package org.example.config;
|
||||
|
||||
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
|
||||
|
||||
public class MySpringServletInit extends AbstractAnnotationConfigDispatcherServletInitializer {
|
||||
|
||||
@Override
|
||||
protected Class<?>[] getRootConfigClasses() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<?>[] getServletConfigClasses() {
|
||||
return new Class[] {SpringConfig.class};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getServletMappings() {
|
||||
return new String[] {"/"};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user