随笔分类 - spring
spring的一些小demo
摘要:package com.qmtt.tools; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org...
阅读全文
摘要:在网上找的demo写了一个小例子,本地开发测试都很正常,但是部署在tomcat就各种坑 1、MyWebSocket不要用spring 注解标注 2、main方法对应的类继承SpringBootServletInitializer,重写configure
阅读全文
摘要:package com.qmtt.api.message.consumer;import org.apache.commons.lang.StringUtils;import org.apache.log4j.Logger;import org.springframework.beans.facto
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:package com.my.proper; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component("configInfo") public class ConfigInfo { @Value("${p...
阅读全文
摘要:接口定义 接口实现类 service接口注入 要么使用限制名,要么使用Resource注入并指定名字,否则会报错 错误描述的意思就是有两个接口实现
阅读全文

浙公网安备 33010602011771号