提升开发环境日志级别
parent
4c59d1e059
commit
6afa107a72
|
@ -1,5 +1,6 @@
|
||||||
package com.muyu.controller;
|
package com.muyu.controller;
|
||||||
|
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
@ -9,10 +10,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
* @description index页跳转
|
* @description index页跳转
|
||||||
* @date 2023/12/1
|
* @date 2023/12/1
|
||||||
*/
|
*/
|
||||||
|
@Log4j2
|
||||||
@Controller
|
@Controller
|
||||||
public class IndexController {
|
public class IndexController {
|
||||||
@RequestMapping("/")
|
@RequestMapping("/")
|
||||||
public String hello(){
|
public String hello(){
|
||||||
|
log.debug("重定向到 - /static/index 页面");
|
||||||
return "forward:/static/index.html";
|
return "forward:/static/index.html";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@ mybatis-plus:
|
||||||
# 日志输出配置
|
# 日志输出配置
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
|
com.muyu: DEBUG
|
||||||
root: INFO
|
root: INFO
|
||||||
org:
|
org:
|
||||||
springframework:
|
springframework:
|
||||||
|
|
Loading…
Reference in New Issue