修改报名 & AOP

This commit is contained in:
2023-03-22 22:55:43 +08:00
parent 21960e7af9
commit c6b0139382
105 changed files with 187 additions and 102 deletions

View File

@@ -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>

View 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";
}
}