随笔分类 -  spring

spring的一些小demo
摘要: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 阅读(1984) 评论(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 阅读(1671) 评论(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 阅读(410) 评论(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 阅读(342) 评论(0) 推荐(0) 编辑
摘要:... 阅读全文
posted @ 2016-03-17 16:15 wujf 阅读(380) 评论(0) 推荐(0) 编辑
摘要:接口定义 接口实现类 service接口注入 要么使用限制名,要么使用Resource注入并指定名字,否则会报错 错误描述的意思就是有两个接口实现 阅读全文
posted @ 2016-03-10 12:45 wujf 阅读(211) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示