target/classes/spring/springmvc.xml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!--静态资源解析包括 :js、css、img、..-->
<!--<mvc:resources mapping="/js/" location="/js/**"/>-->
<!--<mvc:resources mapping="/css/" location="/css/**"/>-->
<!--<mvc:resources mapping="/fonts/" location="/fonts/**"/>-->
<!--<mvc:resources mapping="/images/" location="/images/**"/>-->
<!--加载静态资源-->
<mvc:default-servlet-handler/>
<!--<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<开启注解方式:配置>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>-->
<!--使用annotation-driven 注解驱动,就可以代替 注解映射器 和 注解适配器 的配置-->
<!--conversion-service 向处理器适配器中注入【自定义的参数绑定组件】。-->
<!--validator 向处理器适配器,注入 校验器-->
<mvc:annotation-driven conversion-service="conversionService">
</mvc:annotation-driven>
<!--自定义参数绑定组件-->
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="104857600" />
<property name="maxInMemorySize" value="4096" />
<property name="defaultEncoding" value="UTF-8"></property>
</bean>
<!--自定义参数绑定组件-->
<bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean">
<!-- 转换器 -->
<property name="converters">
<set>
<!-- 日期类型转换 -->
<bean class="com.system.controller.converter.CustomDateConverter"/>
</set>
</property>
</bean>
<!--组件扫描,可以扫描 controller、Service、...
并注册添加到 spring 容器中
这里扫描 controller,指定controller的包
-->
<context:component-scan base-package="com.system.controller"/>
<!--全局错误信息处理器
只要实现HandlerExceptionResolver接口就是全局异常处理器
-->
<bean class="com.system.exception.CustomExceptionResolver"/>
<!--视图解析器-->
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。