新增email依赖

This commit is contained in:
wenc000 2020-07-31 19:21:14 +08:00
parent 42301ca37d
commit a61b9d0405
2 changed files with 22 additions and 1 deletions

View File

@ -54,6 +54,10 @@ public class ApiParamsAspect {
public void wechatCutPoint() {
}
@Pointcut("execution(public * com.cm.central.control.controller..*.*(..))")
public void centralControlPoint() {
}
@Before("apiCutPoint()")
public void beforeApiCutPoint(JoinPoint joinPoint) throws ParamsException {
beforeCutPoint(joinPoint);
@ -79,6 +83,11 @@ public class ApiParamsAspect {
beforeCutPoint(joinPoint);
}
@Before("centralControlPoint()")
public void beforeCentralControlPoint(JoinPoint joinPoint) throws ParamsException {
beforeCutPoint(joinPoint);
}
private void beforeCutPoint(JoinPoint joinPoint) throws ParamsException {
Signature signature = joinPoint.getSignature();
Object[] args = joinPoint.getArgs();

14
pom.xml
View File

@ -23,6 +23,8 @@
<module>cloud-common-freemarker</module>
<module>cloud-common-socket</module>
<module>cloud-common-socket-client</module>
<module>cloud-central-control</module>
<module>cloud-central-control-client</module>
</modules>
<packaging>pom</packaging>
<description>成迈云</description>
@ -66,6 +68,8 @@
<zxing.version>3.3.3</zxing.version>
<pingyin4j.version>2.5.1</pingyin4j.version>
<sauronsoftware.version>1.0.2</sauronsoftware.version>
<jwt.version>1.0.9.RELEASE</jwt.version>
<email.version>1.6.2</email.version>
</properties>
<!-- 依赖管理 -->
@ -371,7 +375,7 @@
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-jwt</artifactId>
<version>1.0.9.RELEASE</version>
<version>${jwt.version}</version>
</dependency>
<!-- sauronsoftware start -->
@ -381,6 +385,14 @@
<version>${sauronsoftware.version}</version>
</dependency>
<!-- sauronsoftware end -->
<!-- email start -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>${email.version}</version>
</dependency>
<!-- email end -->
</dependencies>
</dependencyManagement>