dyl的gravatar头像
dyl 2014-05-27 00:17:37

java SSH员工管理系统以及Demo代码下载

项目截图:

java SSH员工管理系统以及Demo代码下载

数据库脚本:

1CREATE DATABASE `company` default charset=utf8;
2CREATE TABLE `employer` (
3  `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
4  `name` varchar(20) NOT NULL,
5  `address` varchar(50) NOT NULL,
6  `create_date` date NOT NULL,
7  PRIMARY KEY (`id`)
8) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

配置文件:

pom.xml

02  <modelVersion>4.0.0</modelVersion>
03  <groupId>dyl</groupId>
04  <artifactId>ssh</artifactId>
05  <version>0.0.1-SNAPSHOT</version>
07 
08   <repositories
09     <repository
10         <id>java</id
11         <name>java official repository</name
12         <url>http://download.java.net/maven/2/</url
13     </repository
14 </repositories>
15   
16  <dependencies>
17    <dependency>
18   <groupId>com.sun</groupId>
19   <artifactId>tools</artifactId>
20   <version>1.5.0</version>
21  </dependency>
22   
23        <dependency>
24      <groupId>org.apache.struts</groupId>
25      <artifactId>struts2-core</artifactId>
26      <version>2.1.8</version>
27        </dependency>
28   
29  <dependency>
30         <groupId>org.apache.struts</groupId>
31      <artifactId>struts2-spring-plugin</artifactId>
32      <version>2.1.8</version>
33        </dependency>
34         
35        <dependency>
36   <groupId>mysql</groupId>
37   <artifactId>mysql-connector-java</artifactId>
38   <version>5.1.9</version>
39  </dependency>
40   
41  <dependency>
42  <groupId>org.springframework</groupId>
43  <artifactId>spring</artifactId>
44  <version>2.5.6</version>
45 </dependency>
46 <dependency>
47  <groupId>org.springframework</groupId>
48  <artifactId>spring-web</artifactId>
49  <version>2.5.6</version>
50 </dependency>
51  
52 <dependency>
53  <groupId>org.hibernate</groupId>
54  <artifactId>hibernate</artifactId>
55  <version>3.2.7.ga</version>
56 </dependency>
57  
58 <!-- Hibernate core library dependency start -->
59 <dependency>
60  <groupId>dom4j</groupId>
61  <artifactId>dom4j</artifactId>
62  <version>1.6.1</version>
63 </dependency>
64  
65 <dependency>
66  <groupId>commons-logging</groupId>
67  <artifactId>commons-logging</artifactId>
68  <version>1.1.1</version>
69 </dependency>
70  
71 <dependency>
72  <groupId>commons-collections</groupId>
73  <artifactId>commons-collections</artifactId>
74  <version>3.2.1</version>
75 </dependency>
76  
77 <dependency>
78  <groupId>cglib</groupId>
79  <artifactId>cglib</artifactId>
80  <version>2.1</version>
81 </dependency>
82  
83 <dependency>
84  <groupId>antlr</groupId>
85  <artifactId>antlr</artifactId>
86  <version>2.7.7</version>
87 </dependency
88          
89    <dependency>
90  <groupId>javassist</groupId>
91  <artifactId>javassist</artifactId>
92  <version>3.12.0.GA</version>
93 </dependency>
94          
95  </dependencies>
96</project>

web.xml

01<?xml version="1.0" encoding="UTF-8"?>
03    
04   <welcome-file-list
05        <welcome-file>index.html</welcome-file
06    </welcome-file-list
07    
08   <filter>
09  <filter-name>structs-tags</filter-name>
10  <filter-class>
11                org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
12        </filter-class>
13 </filter>
14  
15 <filter-mapping>
16  <filter-name>structs-tags</filter-name>
17  <url-pattern>/*</url-pattern>
18 </filter-mapping>
19  
20   <listener>
21     <listener-class>
22       org.springframework.web.context.ContextLoaderListener
23     </listener-class>
24    </listener>
25  <context-param>
26  <param-name>contextConfigLocation</param-name>
27  <param-value>/WEB-INF/classes/SpringBeans.xml</param-value>
28   </context-param>
29   
30</web-app>

struts.xml

01<?xml version="1.0" encoding="UTF-8" ?>
02<!DOCTYPE struts PUBLIC
03"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
05  
06<struts>
07 <constant name="struts.action.extension" value="html" />
08  <constant name="struts.devMode" value="true" />
09  
10 <package name="default" namespace="/" extends="struts-default">
11  
12  <action name="addEmployer"
13   class="employerAction" method="addEmployer" >
14      <result name="success">/WEB-INF/views/Employer.jsp</result>
15  </action>
16  
17  <action name="index"
18   class="employerAction" method="listCustomer" >
19      <result name="success">/WEB-INF/views/Employer.jsp</result>
20  </action>
21  
22 </package>
23  
24</struts>

springBeans.xml

01<?xml version="1.0" encoding="UTF-8"?>
06  
07 <import resource="./DataSource.xml"/>
08 <import resource="./HibernateSessionFactory.xml"/>
09 <import resource="./EmployerBean.xml"/>
10  
11</beans>

 

运行截图:

java SSH员工管理系统以及Demo代码下载


最代码官方编辑于2016-10-9 9:59:42


打赏

文件名:ssh.zip,文件大小:19.581K 下载
最代码最近下载分享源代码列表最近下载
3516569014  LV5 2023年5月7日
liqingzhao6  LV12 2020年8月5日
cxc_123  LV2 2020年6月22日
xuchi123  LV7 2020年5月2日
wanyuxia2526  LV2 2020年3月12日
xuweisong2010  LV28 2020年1月13日
1063091784  LV1 2019年12月22日
shsahhf  LV7 2019年12月7日
zhuxxiaoh  LV8 2019年12月5日
1242023360  LV10 2019年12月4日
最代码最近浏览分享源代码列表最近浏览
随便取个名字_哈哈  LV27 2024年11月23日
WBelong  LV8 2024年9月19日
y_x_happy  LV4 2024年6月25日
Guo_9981  LV1 2024年4月20日
雄熊熊雄  LV2 2023年11月28日
哈哈ha zhh  LV2 2023年11月16日
政政123456  LV3 2023年10月22日
li951753  LV2 2023年6月19日
3516569014  LV5 2023年5月7日
星辰xc  LV2 2023年5月7日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友