完成10个工程的代码

This commit is contained in:
yidao620
2018-02-27 16:38:38 +08:00
parent 4d57c022c6
commit 2cf3ac80b5
354 changed files with 1907 additions and 822 deletions

View File

@ -4,7 +4,7 @@
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>
<groupId>com.enzhico</groupId>
<groupId>com.xncoding</groupId>
<artifactId>springboot-aop</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

View File

@ -1,4 +1,4 @@
package com.enzhico.aop;
package com.xncoding.aop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,4 +1,4 @@
package com.enzhico.aop.aspect;
package com.xncoding.aop.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
@ -16,7 +16,7 @@ import java.util.Arrays;
@Aspect
@Component
public class LogAspect {
@Pointcut("execution(public * com.enzhico.aop.controller.*.*(..))")
@Pointcut("execution(public * com.xncoding.aop.controller.*.*(..))")
public void webLog(){}
@Before("webLog()")

View File

@ -1,4 +1,4 @@
package com.enzhico.aop.aspect;
package com.xncoding.aop.aspect;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@ -1,4 +1,4 @@
package com.enzhico.aop.aspect;
package com.xncoding.aop.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
@Aspect
public class UserAccessAspect {
@Pointcut(value = "@annotation(com.enzhico.aop.aspect.UserAccess)")
@Pointcut(value = "@annotation(com.xncoding.aop.aspect.UserAccess)")
public void access() {
}

View File

@ -1,9 +1,9 @@
package com.enzhico.aop.controller;
package com.xncoding.aop.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.enzhico.aop.aspect.UserAccess;
import com.xncoding.aop.aspect.UserAccess;
/**
* Description:

View File

@ -2,11 +2,6 @@
################## 所有profile共有的配置 #################
##########################################################
################### 自定义项目配置 ###################
enzhico:
kaptcha-open: true #是否开启登录时验证码 (true/false)
session-open: false #是否开启session验证 (true/false)
################### 项目启动端口 ###################
server.port: 8092
@ -15,10 +10,6 @@ spring:
profiles:
active: dev
logging:
level:
org.springframework.web.servlet: ERROR
---
#####################################################################
@ -31,6 +22,6 @@ logging:
level:
ROOT: INFO
com:
enzhico: DEBUG
xncoding: DEBUG
file: E:/logs/aop.log