idea之maven项目创建SSM
文章平均质量分 60
野狼程序猿战队
本人熟悉java以及C#语言。。
展开
-
pom.xml的详细配置
project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd原创 2018-01-26 14:55:47 · 212 阅读 · 0 评论 -
UserMapper.xml
xml version="1.0" encoding="UTF-8"?>"-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >mapper namespace="com.bjhst.ssm.dao.UserDao"> resultMap id="UserBaseMap"原创 2018-01-26 15:17:48 · 1993 阅读 · 0 评论 -
t_user.sql
SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for `t_user`-- ----------------------------DROP TABLE IF EXISTS `t_user`;CREATE TABLE `t_user` ( `id` bigint(11) NOT原创 2018-01-26 15:16:36 · 476 阅读 · 0 评论 -
UserServiceImpl类
package com.bjhst.ssm.service.impl;import com.bjhst.ssm.service.UserService;import com.bjhst.ssm.dao.UserDao;import com.bjhst.ssm.model.User;import org.springframework.stereotype.Service;import原创 2018-01-26 15:13:32 · 3777 阅读 · 0 评论 -
UserService类
package com.bjhst.ssm.service;import com.bjhst.ssm.model.User;import java.util.List;/** * @author admin */@SuppressWarnings("all")public interface UserService { ListUser> getAllUser();原创 2018-01-26 15:12:05 · 6455 阅读 · 0 评论 -
User类
package com.bjhst.ssm.model;import java.util.Date;/** * @author admin */@SuppressWarnings("all")public class User { private Long id; private String userName; private String userP原创 2018-01-26 15:10:49 · 2724 阅读 · 0 评论 -
UserDao类
package com.bjhst.ssm.dao;import com.bjhst.ssm.model.User;import org.apache.ibatis.annotations.Param;import org.springframework.stereotype.Repository;import java.util.List;@SuppressWarnings("原创 2018-01-26 15:08:56 · 3003 阅读 · 0 评论 -
UserController类
package com.bjhst.ssm.controller;import com.bjhst.ssm.model.User;import com.bjhst.ssm.service.UserService;import org.apache.log4j.Logger;import org.springframework.stereotype.Controller;import o原创 2018-01-26 15:07:29 · 2182 阅读 · 0 评论 -
maven项目的目录
原创 2018-01-26 15:04:50 · 195 阅读 · 0 评论 -
jdbc.properties 以及spring-mvc.xml以及spring-mybatis以及web.xml
driverClasss=com.mysql.jdbc.DriverjdbcUrl=jdbc:mysql://localhost:3306/db_ssm?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNullusername=rootpassword=123456#定义初始连接数initial原创 2018-01-26 15:19:18 · 401 阅读 · 0 评论