以下的也要注意,也容易拋異常:
日志寫法是:logging.level(該代碼會自動補全的,不要隨便寫,否則出錯)
logging:
level: debug(這是字符串,所以拋異常)
level是map鍵值對形式
(key:包名)cn.itcast: debug(值:是級名)
org.springframework: debug
-----------
logging:
level:(此處不能有debug)
cn.itcast: debug
org.springframework: debug