Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-in-sleuth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
仲光辉
test-in-sleuth
Commits
51c3c18a
Commit
51c3c18a
authored
Oct 20, 2020
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切入点表达式修正:包扫描 2020/10/20 10:51
parent
73c8f640
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
9 deletions
+1
-9
RequestLogAspect.java
...n/dankal/test/common/service/aspect/RequestLogAspect.java
+1
-1
UserController.java
...n/java/cn/dankal/test/user/controller/UserController.java
+0
-2
UserController.java
...n/java/cn/dankal/test/user/controller/UserController.java
+0
-2
OrderController.java
...java/cn/dankal/test/order/controller/OrderController.java
+0
-2
OrderController.java
...java/cn/dankal/test/order/controller/OrderController.java
+0
-2
No files found.
01-test-in-sleuth-common/01-02-service-util/src/main/java/cn/dankal/test/common/service/aspect/RequestLogAspect.java
View file @
51c3c18a
...
@@ -44,7 +44,7 @@ public class RequestLogAspect {
...
@@ -44,7 +44,7 @@ public class RequestLogAspect {
/**
/**
* 切入点表达式
* 切入点表达式
*/
*/
@Pointcut
(
"
@within(cn.dankal.test.common.service.aspect.DoRequestLog
)"
)
@Pointcut
(
"
execution(public * cn.dankal.test..controller..*(..)
)"
)
public
void
pointcut
()
{
public
void
pointcut
()
{
}
}
...
...
03-test-in-sleuth-user/03-01-user-service-01/src/main/java/cn/dankal/test/user/controller/UserController.java
View file @
51c3c18a
...
@@ -2,7 +2,6 @@ package cn.dankal.test.user.controller;
...
@@ -2,7 +2,6 @@ package cn.dankal.test.user.controller;
import
cn.dankal.test.client.order.OrderServiceClient
;
import
cn.dankal.test.client.order.OrderServiceClient
;
import
cn.dankal.test.common.domain.Person
;
import
cn.dankal.test.common.domain.Person
;
import
cn.dankal.test.common.service.aspect.DoRequestLog
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -21,7 +20,6 @@ import java.time.format.DateTimeFormatter;
...
@@ -21,7 +20,6 @@ import java.time.format.DateTimeFormatter;
* @create 2020/10/18
* @create 2020/10/18
*/
*/
@Slf4j
@Slf4j
@DoRequestLog
@RestController
@RestController
@RequestMapping
(
"/user"
)
@RequestMapping
(
"/user"
)
public
class
UserController
{
public
class
UserController
{
...
...
03-test-in-sleuth-user/03-02-user-service-02/src/main/java/cn/dankal/test/user/controller/UserController.java
View file @
51c3c18a
...
@@ -2,7 +2,6 @@ package cn.dankal.test.user.controller;
...
@@ -2,7 +2,6 @@ package cn.dankal.test.user.controller;
import
cn.dankal.test.client.order.OrderServiceClient
;
import
cn.dankal.test.client.order.OrderServiceClient
;
import
cn.dankal.test.common.domain.Person
;
import
cn.dankal.test.common.domain.Person
;
import
cn.dankal.test.common.service.aspect.DoRequestLog
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -21,7 +20,6 @@ import java.time.format.DateTimeFormatter;
...
@@ -21,7 +20,6 @@ import java.time.format.DateTimeFormatter;
* @create 2020/10/18
* @create 2020/10/18
*/
*/
@Slf4j
@Slf4j
@DoRequestLog
@RestController
@RestController
@RequestMapping
(
"/user"
)
@RequestMapping
(
"/user"
)
public
class
UserController
{
public
class
UserController
{
...
...
04-test-in-sleuth-order/04-01-order-service-01/src/main/java/cn/dankal/test/order/controller/OrderController.java
View file @
51c3c18a
package
cn
.
dankal
.
test
.
order
.
controller
;
package
cn
.
dankal
.
test
.
order
.
controller
;
import
cn.dankal.test.common.service.aspect.DoRequestLog
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -19,7 +18,6 @@ import java.util.UUID;
...
@@ -19,7 +18,6 @@ import java.util.UUID;
* @create 2020/10/18
* @create 2020/10/18
*/
*/
@Slf4j
@Slf4j
@DoRequestLog
@RestController
@RestController
@RequestMapping
(
"/order"
)
@RequestMapping
(
"/order"
)
public
class
OrderController
{
public
class
OrderController
{
...
...
04-test-in-sleuth-order/04-02-order-service-02/src/main/java/cn/dankal/test/order/controller/OrderController.java
View file @
51c3c18a
package
cn
.
dankal
.
test
.
order
.
controller
;
package
cn
.
dankal
.
test
.
order
.
controller
;
import
cn.dankal.test.common.service.aspect.DoRequestLog
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
@@ -19,7 +18,6 @@ import java.util.UUID;
...
@@ -19,7 +18,6 @@ import java.util.UUID;
* @create 2020/10/18
* @create 2020/10/18
*/
*/
@Slf4j
@Slf4j
@DoRequestLog
@RestController
@RestController
@RequestMapping
(
"/order"
)
@RequestMapping
(
"/order"
)
public
class
OrderController
{
public
class
OrderController
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment