Browse Source

引入pom

pull/1/head
zed 6 years ago
parent
commit
eb71d665ea
  1. BIN
      install/fr-plugin-H5-request-preHandle-1.0.zip
  2. 4
      plugin.xml
  3. 14
      pom.xml
  4. 14
      prehandle.iml
  5. 4
      src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java

BIN
install/fr-plugin-H5-request-preHandle-1.0.zip

Binary file not shown.

4
plugin.xml

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin>
<id>com.fr.plugin.passport</id>
<id>com.fr.plugin.request.prehandle</id>
<name><![CDATA[请求预处理接口]]></name>
<active>yes</active>
<version>1.0</version>
<env-version>10.0~</env-version>
<jartime>2019-04-08</jartime>
<jartime>2019-04-01</jartime>
<vendor>zed</vendor>
<description><![CDATA[请求预处理示例]]></description>
<change-notes><![CDATA[

14
pom.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.fr.plugin</groupId>
<artifactId>starter</artifactId>
<version>10.0</version>
</parent>
<packaging>jar</packaging>
<artifactId>decision-request-prehandle</artifactId>
</project>

14
prehandle.iml

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/../env/webroot/WEB-INF/classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="decision-base" />
<orderEntry type="library" name="lib" level="project" />
</component>
</module>

4
src/main/java/com/fr/plugin/decision/MobileH5RequestPreHandle.java

@ -18,10 +18,12 @@ public class MobileH5RequestPreHandle extends AbstractRequestPreHandleProvider {
}
@Override
public void preHandle(HttpServletRequest req, HttpServletResponse res) {
public boolean preHandle(HttpServletRequest req, HttpServletResponse res) {
try {
res.sendRedirect("https://git.fanruan.com");
} catch (Exception ignore) {
}
return false;
}
}

Loading…
Cancel
Save