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

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

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

    阅读全文
  4. 嵌入式Tomcat Web服务器的使用 在运行web工程时,常常要频繁启动tomcat,使用嵌入式tomcat可以减少部分重复操作。 1、下载tomcat5.0.28embed.zip 解压文件夹复制到工程下。   http://archive.apache.org/dist/tomcat/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28-embed.zip 2、源码实现 import java.io.File; impor ...

    阅读全文
  5. Spring Boot为Spring MVC 提供了 auto-configuration. The auto-configuration adds the following features on top of Spring’s defaults: Inclusion of ContentNegotiatingViewResolver and BeanNameViewResolver beans. Support fo ...

    阅读全文
  6. spring boot存放views的默认路径在哪呢? 写了一个简单Controller的ExceptionHandler,代码如下: 目的是访问/demoexception时估计抛出exception,被controller中定义的exceptionhandler捕获并返回给view error3来显示。 @Controller public class SelfExceptionController { @RequestMapping(&quo ...

    阅读全文
1234