修复 LogInterceptor 路径错误
This commit is contained in:
@@ -27,7 +27,7 @@ public class LogInterceptor {
|
||||
/**
|
||||
* 执行拦截
|
||||
*/
|
||||
@Around("execution(* com.yupi.project.controller.*.*(..))")
|
||||
@Around("execution(* com.yolo.keyborad.controller.*.*(..))")
|
||||
public Object doInterceptor(ProceedingJoinPoint point) throws Throwable {
|
||||
// 计时
|
||||
StopWatch stopWatch = new StopWatch();
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author yupi
|
||||
*/
|
||||
@Configuration
|
||||
@MapperScan("com.yupi.project.mapper")
|
||||
@MapperScan("com.yolo.keyborad.mapper")
|
||||
public class MyBatisPlusConfig {
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.yolo.keyborad.controller;
|
||||
|
||||
import com.yolo.keyborad.common.BaseResponse;
|
||||
import com.yolo.keyborad.common.ResultUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2025/10/28 20:42
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/demo")
|
||||
@Slf4j
|
||||
@CrossOrigin
|
||||
public class DemoController {
|
||||
|
||||
@GetMapping("/test")
|
||||
public BaseResponse<String> hostsInfo(){
|
||||
|
||||
return ResultUtils.success("hello world");
|
||||
}
|
||||
}
|
||||
5
src/main/java/com/yolo/keyborad/package-info.java
Normal file
5
src/main/java/com/yolo/keyborad/package-info.java
Normal file
@@ -0,0 +1,5 @@
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2025/10/28 20:50
|
||||
*/
|
||||
package com.yolo.keyborad;
|
||||
Reference in New Issue
Block a user