springMVC
文章平均质量分 70
springMVC
yaoshengting
这个作者很懒,什么都没留下…
展开
-
Spring的BeanFactoryPostProcessor扩展点实现类ConfigurationClassPostProcessor
BeanDefinitionRegistryPostProcessor对标准 {@link BeanFactoryPostProcessor} SPI 的扩展,允许在常规 BeanFactoryPostProcessor 检测开始之前进一步地注册bean定义。特别是BeanDefinitionRegistryPostProcessor 可以进一步地注册bean 定义,这些定义反过来定义 BeanFactoryPostProcessor 实例。public interface BeanDefinition原创 2022-02-11 18:00:06 · 629 阅读 · 0 评论 -
SpringMVC应用启动流程图
原创 2022-01-26 15:09:55 · 348 阅读 · 0 评论 -
SpringMvc项目集成Nacos配置中心
Spring版本要求因为spring.profiles.active是从spring3.1版本开始有的,而该属性是我们在此集成中需要用到的,因此对spring版本的要求是在3.1以上Spring版本与JDK版本兼容范围 Spring Framework 5.3.x: JDK 8-19 (expected) Spring Framework 5.2.x: JDK 8-15 Spring Framework 5.1.x: JDK 8-12 Spring Framewo原创 2022-01-14 18:43:07 · 6608 阅读 · 0 评论 -
spring web自动装配技术之servlet3.0新特性
https://my.oschina.net/u/3574106/blog/1819394原创 2020-12-29 16:45:50 · 588 阅读 · 0 评论 -
ContextLoader
/** * Performs the actual initialization work for the root application context. * Called by {@link ContextLoaderListener}. * * <p>Looks for a {@link #CONTEXT_CLASS_PARAM "contextClass"} par...原创 2019-11-09 04:52:10 · 632 阅读 · 0 评论 -
ServletContextListener
/** * Implementations of this interface receive notifications about * changes to the servlet context of the web application they are * part of. * To receive notification events, the impleme...原创 2019-11-09 03:41:27 · 234 阅读 · 0 评论 -
spring中的Web上下文(ServletContext),Spring上下文(WebApplicationContext),SpringMVC上下文
Servlet规范定义了一个API标准,这一标准的实现通常称为Servlet容器,比如开源的Tomcat、JBoss。 web容器更准确的说应该叫web服务器,它是来管理和部署 web应用的。web容器最典型的就是tomcat了,Tomcat是web容器也是servlet容器。所谓容器(服务器、中间件等),就是提供一些底层的、业务无关的基本功能,为真正的Servl...原创 2019-11-02 15:05:41 · 1411 阅读 · 0 评论 -
Could not open ServletContext resource [/WEB-INF/springMvc-servlet.xml]问题引起的认识
在优化公司SpingMVC项目整理配置文件的时候,整理完配置文件启动项目后报如下的错误org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/springmvc-servlet...原创 2019-10-27 20:37:17 · 3095 阅读 · 0 评论 -
Java web项目中如何将静态HTML或jsp动态生成PDF文件
直接奔入正题,首先引入下方maven依赖复制到pom.xml中,如果不是maven项目,可到https://search.maven.org/直接去下载。<dependency> <groupId>org.xhtmlrenderer</groupId> <artifactId>flying-saucer-pdf-itext5</...转载 2019-08-22 16:35:45 · 1825 阅读 · 0 评论 -
SpringMVC中@JsonSerialize通过注解格式化字段样式
jackson-databind-x.x.x.jar 在后台查询出来的数据后,有时候我们需要对数据的值进行格式化,比如日期,时间,若不加任何说明情况下Date类型将以时间戳的形式转换为Json并返回。 jackson提供了一些自定义格式的方法。我们只需继承它的抽象类JsonSerializer<T> ,并在指定的属性方法上添加注解@JsonSeriali...原创 2019-02-02 10:33:15 · 5154 阅读 · 0 评论