sofh7777 发表于 2017-12-15 09:28:33

SpringMVC整合Mongodb开发

<?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:util="http://www.springframework.org/schema/util"
  xmlns:p="http://www.springframework.org/schema/p"
  xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
  http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
  http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-3.1.xsd">
  

  <!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->
  <!-- Enables the Spring MVC @Controller programming model -->
  <mvc:annotation-driven />
  

  <context:component-scan base-package="com.pudp" />
  <!-- 配置基于Session的处理,将提交上来的locale参数进行处理 -->
  <bean>
  <!-- 该属性可以不用配置 -->
  <property name="defaultLocale" value="ja"></property>
  </bean>
  <!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
  <bean>
  <property name="prefix" value="/WEB-INF/views/" />
  <property name="suffix" value=".jsp" />
  </bean>
  
</beans>
页: [1]
查看完整版本: SpringMVC整合Mongodb开发