Home > Back-end >  Configure the Spring - mybatis
Configure the Spring - mybatis

Time:11-26

for SpringMVC. XML
 

<? The XML version="1.0" encoding="utf-8"?>
XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance"
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: MVC="http://www.springframework.org/schema/mvc"
XMLNS: aop="http://www.springframework.org/schema/aop"
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/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd "& gt;









Text/HTML. Charset=utf-8 & lt;/value> Application/json. Charset=utf-8 & lt;/value>
Multipart/form - data; Charset=utf-8 & lt;/value>



WriteDateUseDateFormat




Base - package="com. Edowebii. Web" use default - filters="false" & gt;
Expression="org. Springframework. Stereotype. Controller"
Type="annotation"/& gt;

Expression="org. Springframework. Stereotype. Controller"
Type="annotation"/& gt;






mybatis. XML
 
<? The XML version="1.0" encoding="utf-8"?>
XMLNS: xsi="http://www.w3.org/2001/XMLSchema-instance"
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: MVC="http://www.springframework.org/schema/mvc"
XMLNS: aop="http://www.springframework.org/schema/aop"
Xsi: schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.2.xsd "& gt;


Init - method="init"
Destroy - method="close" & gt;
  • Related