81,092
社区成员
发帖
与我相关
我的任务
分享
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext.xml</param-value>
<bean name="loginService" class="com.ssh.service.LoginService" init-method="initMethod" scope="prototype">
</bean>
public class LoginService implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
System.out.println("service afterPropertiesSet method");
}
public void initMethod(){
System.out.println("service initMethod method");
}
}
2014-11-9 15:20:26 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
2014-11-9 15:20:26 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
2014-11-9 15:20:26 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
2014-11-9 15:20:26 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
2014-11-9 15:20:26 org.apache.struts2.spring.StrutsSpringObjectFactory info
信息: Initializing Struts-Spring integration...
2014-11-9 15:20:26 com.opensymphony.xwork2.spring.SpringObjectFactory info
信息: Setting autowire strategy to name
2014-11-9 15:20:26 org.apache.struts2.spring.StrutsSpringObjectFactory info
信息: ... initialized Struts-Spring integration successfully
2014-11-9 15:20:26 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2014-11-9 15:20:26 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2014-11-9 15:20:26 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16 config=null
2014-11-9 15:20:26 org.apache.catalina.startup.Catalina start
信息: Server startup in 2125 ms