首页 > 编程语言 > 详细

spring+mybatis 配置问题

时间:2014-11-10 15:49:07      阅读:261      评论:0      收藏:0      [点我收藏+]

spring-mvc 文件配置


<mvc:resources mapping="/static/**" location="/static/" /> //过滤可访问的静态文件,可以不经过spring的servlet
    
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">  
        <property name="messageConverters">  
             <list>  
                 <bean class="org.springframework.http.converter.StringHttpMessageConverter">  
                    <property name="supportedMediaTypes">  
                        <list>  
                            <value>text/plain;charset=UTF-8</value>  
                         </list>  
                    </property>  
                 </bean>
                 <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">  
                    <property name="supportedMediaTypes">  
                        <list>  
                            <value>text/plain;charset=UTF-8</value>
                         </list>  
                    </property>  
                 </bean>
             </list>  
        </property>  
    </bean>
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/views/"/>
        <property name="suffix" value=".jsp"/>
    </bean>
    
    <bean id="multipartResolver"  
          class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    </bean>
          
    <context:component-scan base-package="cn.jesong.webcall.report.controller" />
    
    <mvc:annotation-driven />

spring+mybatis 配置问题

原文:http://7353479.blog.51cto.com/7343479/1574918

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!