自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(8)
  • 收藏
  • 关注

转载 spring cloud config配置中心源码分析之注解@EnableConfigServer

spring cloud config的主函数是ConfigServerApplication,其定义如下:@Configuration@EnableAutoConfiguration@EnableConfigServerpublic class ConfigServerApplication { public static void main(Stri...

2017-01-20 14:45:00 2406

转载 Inversion of Control Containers and the Dependency Injection pattern--Martin Fowler

原文地址:https://martinfowler.com/articles/injection.htmln the Java community there's been a rush of lightweight containers that help to assemble components from different projects into a cohesive ...

2017-01-17 09:41:00 181

转载 tomcat指定配置文件路径方法

1.在catalina.sh 中设置JAVA_OPTS,例如:JAVA_OPTS='-server -Xms1024m -Xmx1024m -XX:NewSize=128m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=256m -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollecti...

2017-01-12 10:24:00 1622

转载 spring源码分析之@Conditional

根源在AnnotationConfigApplicationContext和AnnotationConfigWebApplicationContext,以AnnotationConfigApplicationContext为例:1.构造方法 /** * Create a new AnnotationConfigApplicationContext, deri...

2017-01-11 17:45:00 111

转载 设置tomcat远程debug

查看端口占用情况命令:netstat -tunlp |grep 8000tomcat 启动远程debug:startup.sh 中的最后一行 exec "$PRGDIR"/"$EXEXUTABLE" start "$@"中的start修改成jpda start ,默认的调试端口是8000 ,可以在catalina.sh 文件中设置JPDA_APPDESS=8000使用st...

2017-01-05 23:06:00 82

转载 Spring Enable annotation – writing a custom Enable annotation

原文地址:https://www.javacodegeeks.com/2015/04/spring-enable-annotation-writing-a-custom-enable-annotation.htmlSpring provides a range of annotations with names starting withEnable*, these annotat...

2017-01-03 17:45:00 74

转载 spring源码分析之@ImportSelector、@Import、ImportResource工作原理分析

1. @importSelector定义:/** * Interface to be implemented by types that determine which @{@link Configuration} * class(es) should be imported based on a given selection criteria, usually one...

2017-01-03 17:21:00 318

转载 How those spring enable annotations work--转

原文地址:http://blog.fawnanddoug.com/2012/08/how-those-spring-enable-annotations-work.htmlSpring's Java Config is a great way to configure your application without writing a lot of configuration co...

2017-01-03 16:13:00 86

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除