SpringBoot2.x使用slf4j+logback日誌,以及動態修改日誌級別

前言:記錄一下SpringBoot學習歷程 SpringBoot中內置了slf4j日誌框架,我們直接使用就好了。 使用slf4j 新建一個測試controller,如: public final Logger log = LoggerFactory.getLogger(getClass()); @GetMapping("/test") public void test() {
相關文章
相關標籤/搜索