Skip to content

ioeshx/QST-PJ1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目运行说明

运行环境:Java 8

  1. 找到src/main/resources/application.yml,修改你的数据库连接配置

    datasource:
        url: jdbc:mysql://localhost:3306/demo_db?useSSL=false&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_To_NULL&serverTimezone=Asia/Shanghai
        username: root      #修改你的用户名和密码
        password: password  
        driver-class-name: com.mysql.cj.jdbc.Driver
    
  2. 在MySQl中新建名为demo_db的数据库,在该数据库中执行demo_db.sql文件建表

  3. 在idea中构建并运行该Spring项目

  4. 访问localhost:8888/index\

测试代码说明

  1. 使用了mockMVC,并且对controller层用到的Service进行mock

测试代码完成情况

  • IndexController
  1. user

    • UserController
    • OrderController
    • MessageController
    • NewsController
    • VenueController
  2. admin

    • AdminUserController
    • AdminOrderController
    • AdminMessageController
    • AdminNewsController
    • AdminVenueController

About

project 1 for course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published