Browse Source

filter接口修改

pull/1/head
richie 6 years ago
parent
commit
52a4304c7d
  1. 2
      plugin.xml
  2. 2
      pom.xml
  3. 2
      src/main/java/com/fr/plugin/demo/request/DemoRequestFilterBridge.java

2
plugin.xml

@ -5,7 +5,7 @@
<active>yes</active>
<version>1.0</version>
<env-version>10.0</env-version>
<jartime>2018-11-09</jartime>
<jartime>2018-11-20</jartime>
<vendor>author</vendor>
<description><![CDATA[Servlet过滤器示例插件。]]></description>
<change-notes><![CDATA[

2
pom.xml

@ -9,7 +9,7 @@
<version>10.0</version>
</parent>
<packaging>jar</packaging>
<artifactId>demo-web-request</artifactId>
<artifactId>demo-request-filter</artifactId>
<build>
<!---如果要更改调试插件,改这里的配置就可以了-->
<outputDirectory>${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.plugin.demo.request.filter-1.0/classes</outputDirectory>

2
src/main/java/com/fr/plugin/demo/request/DemoRequestFilterBridge.java

@ -17,7 +17,7 @@ public class DemoRequestFilterBridge extends AbstractEmbedRequestFilterProvider
@Override
@Focus(id="com.fr.plugin.demo.request.filter", text = "", source = Original.PLUGIN)
public void doFilter(HttpServletRequest req, HttpServletResponse res, FilterChain filterChain) throws IOException, ServletException {
public void filter(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
FineLoggerFactory.getLogger().info("=========Test Filter========");
}
}

Loading…
Cancel
Save