deployed 2.0.6.RELEASE,优化部分代码、升级相关依赖

master
剑器近 2021-11-10 17:55:14 +08:00
parent 9131645204
commit 8e6f35ae2a
2 changed files with 13 additions and 12 deletions

17
pom.xml
View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.yezhihao</groupId>
<artifactId>netmc</artifactId>
<version>2.0.5.RELEASE</version>
<version>2.0.6.RELEASE</version>
<packaging>jar</packaging>
<name>Netmc</name>
@ -33,10 +33,10 @@
<properties>
<java.version>1.8</java.version>
<resource.delimiter>@</resource.delimiter>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.test.skip>true</maven.test.skip>
</properties>
@ -62,7 +62,7 @@
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<version>4.1.66.Final</version>
<version>4.1.70.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
@ -74,7 +74,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.9</version>
<version>5.3.12</version>
<scope>compile</scope>
</dependency>
</dependencies>
@ -103,7 +103,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<executions>
<execution>
<phase>package</phase>
@ -116,7 +116,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
@ -143,6 +143,7 @@
<version>2.5.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
@ -169,7 +170,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.11.2</version>
<version>1.11.3</version>
</plugin>
</plugins>
</build>

View File

@ -9,18 +9,18 @@ import io.github.yezhihao.netmc.session.Session;
* home https://gitee.com/yezhihao/jt808-server
*/
public interface HandlerInterceptor<T extends Message> {
/** 未找到对应的Handle */
/** @return Response 未找到对应的Handle */
T notSupported(T request, Session session);
/** 调用之前 */
/** @return boolean 调用之前 */
boolean beforeHandle(T request, Session session);
/** 调用之后返回值为void的 */
/** @return Response 调用之后返回值为void的 */
T successful(T request, Session session);
/** 调用之后,有返回值的 */
void afterHandle(T request, T response, Session session);
/** 调用之后抛出异常的 */
/** @return Response 调用之后抛出异常的 */
T exceptional(T request, Session session, Exception e);
}