教务管理系统8-7
来源:互联网 发布:美女秀场软件 编辑:程序博客网 时间:2024/04/29 06:35
班级管理模块:
财务管理模块
总关系图:
构建模块关系暂告一段落。
接下来用myeclipse创建动态web项目(Dynamic web project):勾选show all wizards后选择
导入所需jar包:
随后add buildpath。
接下来配置web.xml与springmvc-servlet.xml:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>ems</display-name>
<welcome-file-list>
<welcome-file>view/login.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>characterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
springmvc-servlet.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- 注解扫描器 -->
<context:component-scan base-package="com.bfw"/>
<!-- 配置试图解析器 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/view/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<import resource="classpath:beans.xml"/>
</beans>
接下来配置beans.xml log4j.properties mybatis-config.xml(之后多记录步骤 少原原本本记录所有源码)
项目初步结构:
与此同时在mysql中创建一个同名数据库:
包名解释:
com.bfw.utils存放公共类和接口包
com.bfw.po存放实体类的包
根据具体业务模块分的包
com.bfw.system 系统模块(员工管理 角色管理 权限管理 权限变更 )
com.bfw.system.controller 存放springmvc控制器的包
com.bfw.system.service 用于存放业务逻辑层相关类和接口
com.bfw.system.mapper 用于存放数据库操作的mybatis相关接口和映射文件
com.bfw.marketing 营销模块
controller service mapper
com.bfw.recruitstudent招生管理
com.bfw.student学员管理
com.bfw.educational 教务管理
com.bfw.classinfo 班级管理
com.bfw.finance 财务管理
所有jsp页面存放到view
项目相关css js 图片都存放到resources文件夹中
- 教务管理系统8-7
- 教务管理系统8-4
- 8_9教务管理系统
- 8_10教务管理系统
- 教务管理系统8_11
- 8-13教务管理系统
- 8-14教务管理系统
- 8-15教务管理系统
- 8-16教务管理系统
- 8-17教务管理系统
- 教务管理系统修复
- 教务管理系统流程图
- 教务管理系统雏形
- 简易教务管理系统
- 教务管理系统-数据库2
- 教务管理系统术语表
- 教务管理系统需求分析
- C语言教务管理系统源代码
- poj 2481 Cows【线段树单点更新】
- Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View andro
- POJ1611The Suspects (并查集大水题)
- c++ cin输入
- 2017.8.07 SSL 模拟赛
- 教务管理系统8-7
- 从零开始写一个jquery日历插件(二)
- 【 IndiaHacks 2nd Elimination 2017】A. Binary Blocks(DP 思维)
- JavaScript写一个能遍历对象和数组的通用forEach函数
- HDU-1385-Minimum Transport Cost
- Rosetta Protein Prediction Tools-----clean_pdb.py
- 为什么中国程序员被称为“码农”
- excel如何显示多个独立窗口
- 多线程编程的优缺点