修改报名 & AOP
This commit is contained in:
10
web/pom.xml
10
web/pom.xml
@@ -27,6 +27,10 @@
|
||||
<groupId>com.love.qn</groupId>
|
||||
<artifactId>dal</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.love.qn</groupId>
|
||||
<artifactId>sjms</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
@@ -50,6 +54,12 @@
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>pdfbox</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.love.qn</groupId>
|
||||
<artifactId>sjms</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
27
web/src/main/java/com/qn/controller/ClientController.java
Normal file
27
web/src/main/java/com/qn/controller/ClientController.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.qn.controller;
|
||||
|
||||
import com.qn.sjms.proxy.aop.Student;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
|
||||
@RestController
|
||||
public class ClientController {
|
||||
|
||||
@Resource
|
||||
Student student;
|
||||
/**
|
||||
* 表白
|
||||
*/
|
||||
@RequestMapping(value = "/testAop", method = RequestMethod.GET)
|
||||
public String testAop() throws IOException {
|
||||
student.hello("张三");
|
||||
student.testJob("李四","打工");
|
||||
student.say("sdadas");
|
||||
return "ok";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user