随笔分类 -  spring

spring的一些小demo
摘要:package com.qmtt.tools; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org... 阅读全文
posted @ 2018-01-30 17:15 wujf 阅读(530) 评论(0) 推荐(0)
摘要:在网上找的demo写了一个小例子,本地开发测试都很正常,但是部署在tomcat就各种坑 1、MyWebSocket不要用spring 注解标注 2、main方法对应的类继承SpringBootServletInitializer,重写configure 阅读全文
posted @ 2018-01-16 14:34 wujf 阅读(612) 评论(0) 推荐(0)
摘要:package com.qmtt.api.message.consumer;import org.apache.commons.lang.StringUtils;import org.apache.log4j.Logger;import org.springframework.beans.facto 阅读全文
posted @ 2017-05-22 17:25 wujf 阅读(1995) 评论(0) 推荐(0)
摘要:1 package com.aspectj.demo.aspect; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annot... 阅读全文
posted @ 2016-04-07 13:39 wujf 阅读(1676) 评论(0) 推荐(0)
摘要:1 2 8 9 10 11 13 14 1 package wjf.maven; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.anno... 阅读全文
posted @ 2016-04-01 09:38 wujf 阅读(415) 评论(0) 推荐(0)
摘要:package com.my.proper; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component("configInfo") public class ConfigInfo { @Value("${p... 阅读全文
posted @ 2016-03-17 16:26 wujf 阅读(346) 评论(0) 推荐(0)
摘要:... 阅读全文
posted @ 2016-03-17 16:15 wujf 阅读(384) 评论(0) 推荐(0)
摘要:接口定义 接口实现类 service接口注入 要么使用限制名,要么使用Resource注入并指定名字,否则会报错 错误描述的意思就是有两个接口实现 阅读全文
posted @ 2016-03-10 12:45 wujf 阅读(218) 评论(0) 推荐(0)