File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 97
97
<groupId >net.sf.ehcache</groupId >
98
98
<artifactId >ehcache</artifactId >
99
99
</dependency >
100
+ <!-- java mail的依赖-->
100
101
<dependency >
101
- <!-- java mail的依赖-->
102
102
<groupId >org.springframework.boot</groupId >
103
103
<artifactId >spring-boot-starter-mail</artifactId >
104
104
</dependency >
105
+ <!-- aop的依赖-->
106
+ <dependency >
107
+ <groupId >org.springframework.boot</groupId >
108
+ <artifactId >spring-boot-starter-aop</artifactId >
109
+ </dependency >
105
110
</dependencies >
106
111
107
112
<build >
Original file line number Diff line number Diff line change
1
+ package com .aspect ;
2
+
3
+ import org .aspectj .lang .annotation .Aspect ;
4
+ import org .aspectj .lang .annotation .Before ;
5
+ import org .springframework .stereotype .Component ;
6
+
7
+ /**
8
+ * Created by zhuzhengping on 2017/3/19.
9
+ */
10
+ @ Aspect
11
+ @ Component
12
+ public class HttpAspect {
13
+
14
+ @ Before ("execution(public * com.controller.*(..))" )
15
+ public void log (){
16
+ System .out .println ("this is the aspect before every requset!!!!" );
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments