-
Couldn't load subscription status.
- Fork 0
lichhaosysu/springspy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
将下面这个Servlet声明到web.xml中启动Spring容器的监听器org.springframework.web.context.ContextLoaderListener后面 <servlet> <servlet-name>springspy</servlet-name> <servlet-class>com.lichhao.springspy.SpringSpyMonitorServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>springspy</servlet-name> <url-pattern>/springspy/*</url-pattern> </servlet-mapping> 然后访问http://hostname:port/appName/springspy/index.html即可看到效果 hostname:主机名或ip地址 port:端口号 appName:工程名称 注意:要使用Refresh Container功能,请不要试用带有"classpath:"前缀的Spring配置文件引用方式,正确的引用方式(以/WEB-INF/classes/开头): <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
About
try to monotor the spring container
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published