已采納回答 / 慕工程0067836
很簡單,改成@Pointcut("execution(public * cn.com.springboot.controller.*.*(..))"),表示controller下面的所有類的所有請求的方法。
2017-11-23
最贊回答 / 喵大大今天學習了嗎
這個不是像攔截器攔截掉了,是統一處理。在一些controller方法執行之前(之后等等),統一進行某種神秘的操作。比如都想在方法執行之前打印hello,不可能在每個方法之前加一個判斷條件,所以寫在before里,打印hello就好了
2017-11-17
已采納回答 / 二十三四歲
https://stackoverflow.com/questions/25720396/how-to-set-hibernate-format-sql-in-spring-bootspring.jpa.properties.hibernate.format_sql=true
2017-11-05