springboot
zhangpeng2022
叩首问路,码梦为生
展开
-
springboot之AOP(1)前置方法
@Aspect@Componentpublic class MethodAspect { @Pointcut("execution(* com.sairobo.heart.modules.app.controller..*.*(..))") public void webLog(){} @Before("webLog()") public void deBef...原创 2018-03-05 21:16:31 · 2101 阅读 · 0 评论 -
springboot之读取properties属性文件
1、/** * 加载配置参数 */public abstract class PropertyUtils { protected abstract ResourceBundle getResource(); /** * 获取Property文件中key对应的value * @param key * @param params * @r...原创 2018-03-22 17:32:33 · 1235 阅读 · 0 评论