NutzCN Logo
问答 nutzboos例子,阿里监控一直404,希望大神指点,谢谢
发布于 2738天前 作者 qq_6c74168a 1649 次浏览 复制 上一个帖子 下一个帖子
标签:
<filter>
		<filter-name>DruidWebStatFilter</filter-name>
		<filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
		<init-param>
			<param-name>exclusions</param-name>
			<param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*,/rs/*</param-value>
		</init-param>
	</filter>
  	<filter-mapping>
		<filter-name>DruidWebStatFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<filter>
		<filter-name>nutz</filter-name>
		<filter-class>org.nutz.mvc.NutFilter</filter-class>
		<init-param>
			<param-name>modules</param-name>
			<param-value>net.nutzbook.MainModule</param-value>
		</init-param>
		<init-param>
        	<param-name>exclusions</param-name>
        	<param-value>/rs/*,/druid/*</param-value>
    	</init-param>
	</filter>
	<filter-mapping>
		<filter-name>nutz</filter-name>
		<url-pattern>/*</url-pattern>
		<!-- ForwardView需要下面的配置 @Ok("->:/xxx/yyy/zzz") -->
      	<dispatcher>REQUEST</dispatcher>
      	<dispatcher>FORWARD</dispatcher>
      	<dispatcher>INCLUDE</dispatcher>
	</filter-mapping>
    
    <servlet>
        <servlet-name>DruidStatView</servlet-name>
        <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>DruidStatView</servlet-name>
        <url-pattern>/druid/*</url-pattern>
    </servlet-mapping>
    
    <welcome-file-list>
    	<welcome-file>index.html</welcome-file>
    	<welcome-file>index.htm</welcome-file>
    	<welcome-file>index.jsp</welcome-file>
    	<welcome-file>default.html</welcome-file>
    	<welcome-file>default.htm</welcome-file>
    	<welcome-file>default.jsp</welcome-file>
  	</welcome-file-list>
  	<error-page>
        <error-code>500</error-code>
        <location>/WEB-INF/jsp/500.jsp</location>
    </error-page>
5 回复

阿里监控是head请求吧

可以参考下之前的项目配置:https://github.com/elkan1788/mpsdk4j-demo。

来自 Simulator

@elkan1788 网址前后加空格才会自动变超链接

@wendal 老大,IOS APP无法识别iphone se呀!😂

来自 Simulator

@elkan1788 你可以报issue嘛

添加回复
请先登陆
回到顶部