摘要:1、使用**匹配任意Url: 2、使用.+匹配任意字符: {path:.+}表示匹配任意字符,但是由于Spring MVC默认将/作为Url分隔符,所以需要更改一下配置:
阅读全文
posted @ 2018-04-03 10:50
|
|
|
文章分类 - java
摘要:1、使用**匹配任意Url: 2、使用.+匹配任意字符: {path:.+}表示匹配任意字符,但是由于Spring MVC默认将/作为Url分隔符,所以需要更改一下配置:
阅读全文
posted @ 2018-04-03 10:50
摘要:将shiro中的DefaultAdvisorAutoProxyCreator删除即可 使用了以下代码无需再配置DefaultAdvisorAutoProxyCreator
阅读全文
posted @ 2017-09-19 17:40
摘要:Signature signature = joinPoint.getSignature(); MethodSignature methodSignature = (MethodSignature)signature; Method targetMethod = methodSignature.getMethod();
阅读全文
posted @ 2017-09-19 17:30
摘要:获取ApplicationContext 1、WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext(); 2、WebApplicationContextUtils.get
阅读全文
posted @ 2017-05-03 11:06
摘要:public static String filterEmoji(String source) { if (source != null) { Pattern emoji = Pattern.compile("[\ud83c\udc00-\ud83c\udfff]|[\ud83d\udc00-\ud83d\udfff]|[\u2600-\u27ff]|[\ue001-\ue537]"...
阅读全文
posted @ 2017-03-01 16:14
|
|