参考链接:Spring整合Mybatis的简单示例(配置文件)
1、创建数据库表
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(12) DEFAULT NULL,
`p[......]
参考链接:Spring整合Mybatis的简单示例(配置文件)
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(12) DEFAULT NULL,
`p[......]
UserServiceImpl.java
package com.yusian.service;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl i[......]
package com.yusian.entity;
import org.springframework.stereotype.Component[......]