已采纳回答 / 慕工程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