共 10 篇文章 |
|
五、配置文件 SpringMVC是Spring的一个组成部分,所以配置文件就会变得简单许多。因为servlet-context.xml与service-context.xml不是同时加载,如果不进行这样的设置,那么,spring就会将所有带@Service注解的类都扫描到容器中,等到加载service-context.xml的时候,会因为容器已经存在Service类,使得cglib将不对Service进行代理,直接导致... 阅228 转3 评0 公众公开 12-08-30 00:50 |
Spring MVC 3.0.5 Spring 3.0.5 MyBatis3.0.4全注解...Spring MVC 3.0.5+Spring 3.0.5+MyBatis3.0.4全注解实例详解(一) Spring更新到3.0之后,其MVC框架加入了一个非常不错的东西——那就是REST。在上一篇文章中我详细的介绍了如何搭建maven环境以及生成一个maven骨架的web项目,那么这章中我将讲述Spring MVC的流程结构,Spring MVC与St... 阅157 转自見龍在田 公众公开 12-08-30 00:49 |
阅5782 转32 评0 公众公开 12-08-30 00:41 |
MyBatis学习一、MyBatis简介与配置MyBatis+Spring+MySql1.1MyBatis简介。-- 更新学生信息 --><update id="updateStudent" parameterType="StudentEntity">UPDATE STUDENT_TBLSET STUDENT_TBL.STUDENT_NAME = #{studentName},STUDENT_TBL.STUDENT_SEX = #{studentSex},STUDENT_TBL.STUDENT_BIRTHDAY = #{studentBi... 阅1408 转14 评0 公众公开 12-08-30 00:29 |
MyBatis 学习笔记MyBatis 学习笔记:官网: http://www.mybatis.org , http://code.google.com/p/mybatis/生成的 sql mapping 配置文件(有删减)<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dt... 阅1442 转16 评0 公众公开 12-08-26 20:10 |
public interface UserMapper { public void insertUser(User user);DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="Mapper.UserMapper"> <!DOCTYPE configuration PUBLIC "-//mybati... 阅249 转2 评0 公众公开 11-04-25 00:59 |
public interface UserMapper { public void insertUser(User user);DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="Mapper.UserMapper"> <!DOCTYPE configuration PUBLIC "-//mybati... 阅2475 转18 评0 公众公开 11-04-24 22:53 |
MyBatis学习 之 一、MyBatis简介与配置MyBaits+Spring+MySql一、MyBatis简介与配置MyBatis+Spring+MySql1.1MyBatis简介。需要使用的Jar包:mybatis-3.0.2.jar(mybatis核心包)。1.2MyBatis+Spring+MySql简单配置1.2.1搭建Spring环境。3,在pom.xml中加入所需要的jar包(spring框架的、mybatis、mybatis-spring、junit等);1.2.3.4创建MyBatis... 阅3179 转15 评0 公众公开 11-03-20 19:16 |
-- 更新学生信息 --><update id="updateStudent" parameterType="StudentEntity">UPDATE STUDENT_TBLSET STUDENT_TBL.STUDENT_NAME = #{studentName},STUDENT_TBL.STUDENT_SEX = #{studentSex},STUDENT_TBL.STUDENT_BIRTHDAY = #{studentBirthday},STUDENT_TBL.CLASS_ID = #{classEntity.classID}WHERE STUDENT_T... 阅3091 转17 评0 公众公开 11-03-20 19:14 |
MyBatis学习 之 三、动态SQL语句三、动态SQL语句。-- 更新学生信息 --><update id="updateStudent" parameterType="StudentEntity">UPDATE STUDENT_TBLSET STUDENT_TBL.STUDENT_NAME = #{studentName},STUDENT_TBL.STUDENT_SEX = #{studentSex},STUDENT_TBL.STUDENT_BIRTHDAY = #{studentBirthday},STUDENT_TBL.C... 阅20553 转37 评0 公众公开 11-03-20 19:13 |