1. 在使用IDEA开发Spring Boot application时,如果使用Devtools依赖包时,可以配置automake来实现文件修改后自动build,deploy并不手动重启server的情况下测试改动。配置如下: 1) create Spring Boot project with SB V1.3 and add "Devtools" (1*) to dependencies 2) invoke Help->Find Action... and t ...

    阅读全文
  2. 一些banner在线生成工具   http://patorjk.com/software/taag/ http://www.network-science.de/ascii/ https://www.degraeve.com/img2txt.php   :'######:::'#######:::'#######:::'######::'##::::'##::::'###::::' ...

    阅读全文
  3. Spring中Configuration的使用和理解,转载这篇文章写的挺清晰的文章 https://my.oschina.net/wuweixiang/blog/1837294   从Spring3.0,@Configuration用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被@Bean注解的方法,这些方法将会被AnnotationConfigApplicationContext或AnnotationConfigWebApplication ...

    阅读全文
  4. Heroku2019-08-07
    24170

    https://www.youtube.com/watch?v=QTOkqzCTGxw https://www.heroku.com/ ...

    阅读全文
  5. Spring configuration property的优先级官方说明:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-external-config Externalized Configuration Spring Boot lets you externalize your configuration so that you can ...

    阅读全文
  6. spring-boot-autoconfigure-2.1.4.release.jar下的spring-autoconfigure-metadata.properties #Thu Apr 04 02:08:30 GMT 2019 org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration.AutoConfigureAfter=org.springframework.b ...

    阅读全文
  7. 在 Java 8 之前,接口只能有抽象方法。这些方法的实现必须在单独的类中提供。因此,如果要在接口中添加新方法,则必须在实现同一接口的类中提供其实现代码。为了克服这个问题,Java 8 引入了默认方法(default method)的概念,该方法允许接口具有实现的方法,而不会影响实现接口的类。 // A simple program to Test Interface default // methods in java interface TestInterface { ...

    阅读全文
  8. 在spring boot 中使用annotation 配置web.xml中的信息时,不用担心RequestMapping的Url pattern重复,因为在启动 server的时候就会初始化RequestMappingHandlerMapping,会自动检测是否有重复的url mapping. 比如下面的异常就是因为有重复的url mapping: /{version}/hello   org.springframework.beans.factory.BeanCrea ...

    阅读全文
  9. 官方文档<<The AspectJTM Programming Guide>>:  https://www.eclipse.org/aspectj/doc/released/progguide/index.html   简介: AspectJ 通过将联接点(join points)的概念叠加到现有的 Java 语义上,并将一些新的程序元素添加到 Java,从而扩展了 Java: 连接点(join points)是程序执行中定义的 ...

    阅读全文
  10. AOP concepts2019-08-12

    Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology is not particularly intuitive; however, it would be even more confusing if Spring used its own terminology. ...

    阅读全文
  11. JDK代理要求被代理的类必须实现接口,有很强的局限性。而CGLIB动态代理则没有此类强制性要求。简单的说,CGLIB会让生成的代理类继承被代理类,并在代理类中对代理方法进行强化处理(前置处理、后置处理等)。在CGLIB底层,其实是借助了ASM这个非常强大的Java字节码生成框架。 使用CGLib实现动态代理,完全不受代理类必须实现接口的限制,而且CGLib底层采用ASM字节码生成框架,使用字节码技术生成代理类,比使用Java反射效率要高。唯一需要注意的是,CGLib不能对声明为final的 ...

    阅读全文
  12. 从Spring-core-5.1.9.RELEASE.jar中分析Spring的IoC和AOP技术实现依赖。 从下图中可以看到有三个第三方lib被repack到spring-core中来,分别是asm, cglib,和 objenesis. asm主要用在支持aspectJ的AOP,cglib主要用来实现的类的动态代理,从而进一步实现AOP,objenesis用来类的实例化。   IoC的实现主要靠java的反射机制来实现,结合了Annotation和XML来 ...

    阅读全文
  13. Besides ApplicationContextAware and BeanNameAware (discussed earlier), Spring offers a wide range of Aware callback interfaces that let beans indicate to the container that they require a certain infrastructure de ...

    阅读全文
  14. MvcUriComponentsBuilder 和 ControllerMethodInvocationInterceptor的解读   ControllerMethodInvocationInterceptor实现了CGLIB的MethodInterceptor,所以是CGLIB动态代理的方法拦截器,从命名来看是对Controller的方法做了争强。同时也实现了org.aopalliance.intercept.MethodInterceptor private ...

    阅读全文
  15. Java高新技术——内省(JavaBean)下面这篇文章写的不错,通俗易懂,建议先看下文章中的示例:https://blog.csdn.net/zhongkelee/article/details/52678667 下面是JDK javabean package 文档说明: https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/beans/package-summary.h ...

    阅读全文
  16. 转载自:https://www.ibm.com/developerworks/cn/java/j-lo-jsonlib/index.html 概述 如今大量的 Web 站点应用了 AJAX 技术,通过更少的数据通讯,服务器能够更快的反馈用户请求,再通过 Javascript 的控制,让使用者有了更好的用户体验。JSON 是一种轻量级的数据交换语言,它是 Javascript 的一个子集,又有良好的可读性,经常用于客户端和服务器间的数据交换。因此,在服务器端,常常需要将实体对象(Jav ...

    阅读全文
  17. 深入理解Java类型信息(Class对象)与反射机制 可以读下这篇文章:https://blog.csdn.net/javazejian/article/details/70768369   写的非常清晰。 ...

    阅读全文
  18. <<Java™ in a Nutshell: A Deskop Quick Reference >>   docstore.mik.ua/orelly/java-ent/jnut/index.htm ...

    阅读全文
  19. 本文链接:https://blog.csdn.net/strivezxq/article/details/44560771  把spring 相关类做了下整理,把spring主要涉及的类都整理成类图,方便查看它们之前的关系,也能帮助更好的阅读分析源码. 1. IOC容器 BeanFactory类图: 2.  资源Resource相关类图: 3. 资源加载器ResourceLoader相关类图: 4. spring Bean定义解析器相关: ...

    阅读全文
  20. 下面这篇文章对Controller的方法参数工作原理解释的非常不错,值得参阅。 https://www.cnblogs.com/fangjian0423/p/springMVC-request-param-analysis.html   另外,此处可以配合spring framework的官方文档中的Spring Web MVC->Annotation Controller->Handler Methods中的Method Arguments和Return ...

    阅读全文