提升开发环境日志级别

master
DongZeLiang 2023-12-02 20:55:40 +08:00
parent 4c59d1e059
commit 6afa107a72
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.muyu.controller;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -9,10 +10,12 @@ import org.springframework.web.bind.annotation.RequestMapping;
* @description index
* @date 2023/12/1
*/
@Log4j2
@Controller
public class IndexController {
@RequestMapping("/")
public String hello(){
log.debug("重定向到 - /static/index 页面");
return "forward:/static/index.html";
}
}

View File

@ -58,6 +58,7 @@ mybatis-plus:
# 日志输出配置
logging:
level:
com.muyu: DEBUG
root: INFO
org:
springframework: