springdatajpa@param是初始化吗
1个回答
展开全部
可以的,直接并列的在web.xml中书写即可。
举例:
filter>
<filter-name>filter</filter-name>
<filter-class>com.service.SafeFilter</filter-class>
<init-param>
<param-name>controlServerIP</param-name>
<param-value>124.207.117.170;</param-value>
</init-param>
<init-param>
<param-name>synConfigAddress</param-name>
<param-value>longjian</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>filter</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
举例:
filter>
<filter-name>filter</filter-name>
<filter-class>com.service.SafeFilter</filter-class>
<init-param>
<param-name>controlServerIP</param-name>
<param-value>124.207.117.170;</param-value>
</init-param>
<init-param>
<param-name>synConfigAddress</param-name>
<param-value>longjian</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>filter</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询