Skip to content

zhangjiabao101/ssm-exam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSM框架整合

  1. sql文件在sql文件夹下.
  2. 使用tomcat启动项目,在VM options中配置-Dfile.encoding=UTF8
  3. 在resources中的jdbc.properties中配置数据库,其他基本不用动

前端

  1. 使用layui进行页面美化,layui官网传送门
  2. 前端使用Ajax向后端发送请求
  3. list为显示表格页面,form为添加和修改的页面,通过url带参数让form页面进行动态改变

后端

  1. 需要fastjson插件,在pom文件中有坐标,建议使用1.2.72版本

  2. mybatis的mapper文件在resources文件夹下的mapper中,若需要更改为其他位置需要在spring-dao.xml文件中 更改sqlSessionFactory下的mapperLocations指定的路径。

  3. 日期处理:后端接收前端时需要在实体类中的加入@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")注解 ,后端向前端发送数据时需要加入@JSONField (format="yyyy-MM-dd'T'HH:mm")

    注:@DataTimeFormat注解需要在spring-web.xml中加入 <mvc:annotation-driven />开启注解驱动, @JSONField注解需要fastjson支持,要在pom.xml中引入fastjson的坐标。

  4. 分页使用LayuiPageHelper进行分页辅助

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published