文件名称:Spring零配置Demo---JavaConfig
文件大小:75KB
文件格式:ZIP
更新时间:2019-05-31 10:41:15
Spring零配置
采用注解配置SpringMVC,有SpringSecurity,Dao,Controller,Servlet等的样例,部分代码: public void onStartup(ServletContext servletContext) throws ServletException { //日志文件配置 servletContext.setInitParameter("log4jConfigLocation","classpath:log4j.xml"); servletContext.setInitParameter("log4jExposeWebAppRoot","true"); servletContext.setInitParameter("log4jRefreshInterval","60000"); servletContext.addListener(Log4jConfigListener.class);