Skip to content

Commit 9c11630

Browse files
committed
2016-03-20多模块最精简版本
1 parent b910e43 commit 9c11630

34 files changed

Lines changed: 2440 additions & 0 deletions

File tree

ssm-commons/pom.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<!--父级依赖-->
8+
<parent>
9+
<groupId>com.youmeek.parent</groupId>
10+
<artifactId>ssm-parent</artifactId>
11+
<version>0.0.1-SNAPSHOT</version>
12+
</parent>
13+
14+
<groupId>com.youmeek.common</groupId>
15+
<artifactId>ssm-common</artifactId>
16+
<version>1.0.0-SNAPSHOT</version>
17+
18+
19+
<!-- 添加依赖 -->
20+
<dependencies>
21+
22+
<!--单元测试-->
23+
<dependency>
24+
<groupId>junit</groupId>
25+
<artifactId>junit</artifactId>
26+
</dependency>
27+
28+
<!-- 日志文件管理包 -->
29+
<!--下面这三个是配套使用:http://blog.csdn.net/woshiwxw765/article/details/7624556-->
30+
<dependency>
31+
<groupId>log4j</groupId>
32+
<artifactId>log4j</artifactId>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>org.slf4j</groupId>
37+
<artifactId>slf4j-api</artifactId>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-log4j12</artifactId>
43+
</dependency>
44+
45+
46+
<!--JSON处理-->
47+
<dependency>
48+
<groupId>com.fasterxml.jackson.core</groupId>
49+
<artifactId>jackson-databind</artifactId>
50+
</dependency>
51+
52+
<!-- 上传组件包 -->
53+
<dependency>
54+
<groupId>commons-fileupload</groupId>
55+
<artifactId>commons-fileupload</artifactId>
56+
</dependency>
57+
58+
<dependency>
59+
<groupId>commons-io</groupId>
60+
<artifactId>commons-io</artifactId>
61+
</dependency>
62+
63+
64+
<!--apache工具包-->
65+
<dependency>
66+
<groupId>org.apache.commons</groupId>
67+
<artifactId>commons-lang3</artifactId>
68+
</dependency>
69+
70+
</dependencies>
71+
72+
73+
</project>

ssm-commons/src/占位符.txt

Whitespace-only changes.

ssm-manage/doc/db/init.sql

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# 创建数据库,并创建权限用户
2+
CREATE DATABASE `ssm` CHARACTER SET utf8;
3+
CREATE USER 'ssm'@'%' IDENTIFIED BY 'ssm';
4+
GRANT ALL PRIVILEGES ON ssm.* TO 'ssm'@'%';
5+
FLUSH PRIVILEGES;
6+
7+
DROP TABLE IF EXISTS `sys_user`;
8+
9+
# 创建表
10+
CREATE TABLE `sys_user` (
11+
`sys_user_id` bigint(20) NOT NULL,
12+
`sys_user_login_name` varchar(50) NOT NULL,
13+
`sys_user_login_password` varchar(50) NOT NULL,
14+
`sys_user_status` varchar(1) NOT NULL,
15+
`sys_user_is_delete` varchar(1) NOT NULL,
16+
`sys_user_register_datetime` datetime NOT NULL,
17+
`sys_user_register_source` varchar(1) NOT NULL,
18+
`sys_user_type` varchar(1) NOT NULL,
19+
`sys_user_sex` varchar(1) NOT NULL,
20+
`sys_user_is_email_active` varchar(1) NOT NULL,
21+
`sys_user_is_mobile_active` varchar(1) NOT NULL,
22+
`sys_user_register_type` varchar(1) NOT NULL,
23+
`sys_user_pay_passwrod` varchar(50) DEFAULT NULL,
24+
`sys_user_icon` varchar(100) DEFAULT NULL,
25+
`sys_user_real_name` varchar(20) DEFAULT NULL,
26+
`sys_user_email` varchar(50) DEFAULT NULL,
27+
`sys_user_mobile` varchar(20) DEFAULT NULL,
28+
`sys_user_weibo_id` varchar(36) DEFAULT NULL,
29+
`sys_user_qq_id` varchar(36) DEFAULT NULL,
30+
PRIMARY KEY (`sys_user_id`)
31+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
32+
33+
34+
# 创建表数据
35+
insert into `sys_user`(`sys_user_id`,`sys_user_login_name`,`sys_user_login_password`,`sys_user_status`,`sys_user_is_delete`,`sys_user_register_datetime`,`sys_user_register_source`,`sys_user_type`,`sys_user_sex`,`sys_user_is_email_active`,`sys_user_is_mobile_active`,`sys_user_register_type`,`sys_user_pay_passwrod`,`sys_user_icon`,`sys_user_real_name`,`sys_user_email`,`sys_user_mobile`,`sys_user_weibo_id`,`sys_user_qq_id`) values (1,'YouMeek1','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩1','363379441@qq.com','13800000001','',''),(2,'YouMeek2','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩2','363379442@qq.com','13800000002','',''),(3,'YouMeek3','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩3','363379443@qq.com','13800000003','',''),(4,'YouMeek4','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩4','363379444@qq.com','13800000004','',''),(5,'YouMeek5','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩5','363379445@qq.com','13800000005','','');
36+
37+

ssm-manage/pom.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>com.youmeek.parent</groupId>
9+
<artifactId>ssm-parent</artifactId>
10+
<version>0.0.1-SNAPSHOT</version>
11+
</parent>
12+
13+
<!--也是父类级别工程,只是是作为一些功能模块的父级,这个是要最最优先install的,但是又因为他下面有依赖其他同级模块,所以其他同级模块要先install-->
14+
<groupId>com.youmeek.manage</groupId>
15+
<artifactId>ssm-manage</artifactId>
16+
<version>1.0.0-SNAPSHOT</version>
17+
<packaging>pom</packaging>
18+
19+
<!--install的时候子模块要被子模块的父类早install,主要看哪些依赖哪些,没有子模块互相依赖关系的优先install-->
20+
<modules>
21+
<module>ssm-manage-pojo</module>
22+
<module>ssm-manage-dao</module>
23+
<module>ssm-manage-service</module>
24+
<module>ssm-manage-web</module>
25+
</modules>
26+
27+
28+
29+
30+
<dependencies>
31+
32+
<!--其他模块-->
33+
<dependency>
34+
<groupId>com.youmeek.common</groupId>
35+
<artifactId>ssm-common</artifactId>
36+
<version>1.0.0-SNAPSHOT</version>
37+
</dependency>
38+
39+
</dependencies>
40+
41+
<build>
42+
<plugins>
43+
<!-- tomcat6插件 -->
44+
<!--https://tomcat.apache.org/maven-plugin-2.0/tomcat6-maven-plugin/run-mojo.html-->
45+
<plugin>
46+
<groupId>org.apache.tomcat.maven</groupId>
47+
<artifactId>tomcat6-maven-plugin</artifactId>
48+
<version>${tomcat6-maven-plugin.version}</version>
49+
<configuration>
50+
<!--项目访问路径 这里直接使用根目录就可以了,访问地址http://localhost:8080/ -->
51+
<!-- 如果这里配置了,比如test,那访问地址就需要变成:http://localhost:8080/test-->
52+
<path>${tomcat-path.version}</path>
53+
<port>${tomcat-port.version}</port>
54+
<!--tomcat的url编码 达到和修改server.xml文件一样的功能-->
55+
<uriEncoding>${tomcat-uri-encoding.version}</uriEncoding>
56+
<!--配置远程tomcat管理的连接路径地址(固定的一个链接)-->
57+
<url>http://localhost:8080/manager/html</url>
58+
<server>tomcat6</server>
59+
</configuration>
60+
</plugin>
61+
62+
<!--tomcat7插件-->
63+
<!--https://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/run-mojo.html-->
64+
<plugin>
65+
<groupId>org.apache.tomcat.maven</groupId>
66+
<artifactId>tomcat7-maven-plugin</artifactId>
67+
<version>${tomcat7-maven-plugin.version}</version>
68+
<configuration>
69+
<path>${tomcat-path.version}</path>
70+
<port>${tomcat-port.version}</port>
71+
<uriEncoding>${tomcat-uri-encoding.version}</uriEncoding>
72+
<url>http://localhost:8080/manager/text</url>
73+
<server>tomcat7</server>
74+
<username>admin</username>
75+
<password>admin</password>
76+
</configuration>
77+
</plugin>
78+
79+
<!--jetty插件-->
80+
<!--http://www.eclipse.org/jetty/documentation/9.0.0.M3/jetty-maven-plugin.html-->
81+
<plugin>
82+
<groupId>org.mortbay.jetty</groupId>
83+
<artifactId>jetty-maven-plugin</artifactId>
84+
<version>${jetty-plugin.version}</version>
85+
<configuration>
86+
<stopKey>foo</stopKey>
87+
<stopPort>9999</stopPort>
88+
<connectors>
89+
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
90+
<port>${jetty-port.version}</port>
91+
</connector>
92+
</connectors>
93+
<webApp>
94+
<!--访问地址:http://localhost:8080/index.jsp-->
95+
<!--如果不带index.jsp会直接报404,这个一直没找到原因-->
96+
<contextPath>${jetty-path.version}</contextPath>
97+
</webApp>
98+
<!--scanIntervalSeconds 可选[秒]。在很短的时间间隔内在扫描web应用检查是否有改变,如果发觉有任何改变则自动热部署。默认为0,表示禁用热部署检查。任何一个大于0的数字都将表示启用。-->
99+
<scanIntervalSeconds>10</scanIntervalSeconds>
100+
</configuration>
101+
</plugin>
102+
</plugins>
103+
</build>
104+
</project>

ssm-manage/src/占位符.txt

Whitespace-only changes.

ssm-manage/ssm-manage-dao/pom.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>com.youmeek.manage</groupId>
7+
<artifactId>ssm-manage</artifactId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>ssm-manage-dao</artifactId>
12+
13+
<dependencies>
14+
15+
<!--其他模块-->
16+
<dependency>
17+
<groupId>com.youmeek.manage</groupId>
18+
<artifactId>ssm-manage-pojo</artifactId>
19+
<version>1.0.0-SNAPSHOT</version>
20+
</dependency>
21+
22+
23+
<!-- Mybatis -->
24+
<dependency>
25+
<groupId>org.mybatis</groupId>
26+
<artifactId>mybatis</artifactId>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.mybatis</groupId>
30+
<artifactId>mybatis-spring</artifactId>
31+
</dependency>
32+
<!-- MySql -->
33+
<dependency>
34+
<groupId>mysql</groupId>
35+
<artifactId>mysql-connector-java</artifactId>
36+
</dependency>
37+
<!-- 连接池 -->
38+
<dependency>
39+
<groupId>com.alibaba</groupId>
40+
<artifactId>druid</artifactId>
41+
</dependency>
42+
43+
44+
45+
46+
</dependencies>
47+
</project>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package com.youmeek.ssm.manage.mapper;
2+
3+
4+
import com.youmeek.ssm.manage.pojo.SysUser;
5+
6+
public interface SysUserMapper {
7+
/**
8+
* This method was generated by MyBatis Generator.
9+
* This method corresponds to the database table sys_user
10+
*
11+
* @mbggenerated
12+
*/
13+
int deleteByPrimaryKey(Long sysUserId);
14+
15+
/**
16+
* This method was generated by MyBatis Generator.
17+
* This method corresponds to the database table sys_user
18+
*
19+
* @mbggenerated
20+
*/
21+
int insert(SysUser record);
22+
23+
/**
24+
* This method was generated by MyBatis Generator.
25+
* This method corresponds to the database table sys_user
26+
*
27+
* @mbggenerated
28+
*/
29+
int insertSelective(SysUser record);
30+
31+
/**
32+
* This method was generated by MyBatis Generator.
33+
* This method corresponds to the database table sys_user
34+
*
35+
* @mbggenerated
36+
*/
37+
SysUser selectByPrimaryKey(Long sysUserId);
38+
39+
/**
40+
* This method was generated by MyBatis Generator.
41+
* This method corresponds to the database table sys_user
42+
*
43+
* @mbggenerated
44+
*/
45+
int updateByPrimaryKeySelective(SysUser record);
46+
47+
/**
48+
* This method was generated by MyBatis Generator.
49+
* This method corresponds to the database table sys_user
50+
*
51+
* @mbggenerated
52+
*/
53+
int updateByPrimaryKey(SysUser record);
54+
}

ssm-manage/ssm-manage-pojo/pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.youmeek.manage</groupId>
8+
<artifactId>ssm-manage</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
</parent>
11+
<artifactId>ssm-manage-pojo</artifactId>
12+
13+
14+
<dependencies>
15+
<!--它没有依赖其他子模块,所以优先install-->
16+
<!--<dependency>-->
17+
<!--<groupId>javax.persistence</groupId>-->
18+
<!--<artifactId>persistence-api</artifactId>-->
19+
<!--<version>1.0</version>-->
20+
<!--</dependency>-->
21+
22+
</dependencies>
23+
24+
25+
</project>

0 commit comments

Comments
 (0)