JavaWeb-WeChatMini-master/javaweb/examination_system/Examination_System/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="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean">
<!-- 转换器 -->
<property name="converters">
<set>
<!-- 日期类型转换 -->
<bean class="com.system.controller.converter.CustomDateConverter"/>
</set>
</property>
</bean>
<!-- json配置 -->
<!-- 用于将对象转换为 JSON -->
<bean id="stringConverter"
class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8</value>
</list>
</property>
</bean>
<bean id="jsonConverter"
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
</bean>
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="stringConverter" />
<ref bean="jsonConverter" />
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。