Skip to content

Petrichor-L/2025-1-4

Repository files navigation

学生成绩管理系统

主要使用 Vue3 + SpringBoot 实现 MySQL 5.7.26

如何运行:

  1. 2025-1-4\MavenDemo\src\main\resources\application.properties 文件中修改下面三行,使 java 程序能够连接本地数据库(记得把书名号《》也删掉)
  • spring.datasource.url=jdbc:mysql://localhost:3306/《数据库的名字》?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
  • spring.datasource.username=《数据库账号》
  • spring.datasource.password=《数据库密码》
  1. 运行 mysql 数据库,运行仓库中的 _localhost-2025_01_05_16_10_48-dump.sql,建表,包含测试数据,账号密码在 user 表中
  2. 运行 2025-1-4\MavenDemo\src\main\java\com\etc\boot\Application.java
  3. 在 2025-1-4\VUE\ 文件夹下运行终端,依次输入以下命令
  • pnpm install
  • pnpm dev
  1. 在浏览器输入 http://localhost:5173/ 即可访问

使用 JDK21 需要修改 MavenDemo/pom.xml 文件

<dependency>
  <groupId>org.projectlombok</groupId>
  <artifactId>lombok</artifactId>
  <version>1.18.36</version>   // 添加这一行
  <optional>true</optional>
</dependency>

Student Grade Management System

Implemented primarily using Vue3 + SpringBoot

How to Run:

  1. In the 2025-1-4\MavenDemo\src\main\resources\application.properties file, modify the following three lines to enable the Java program to connect to the local database (remember to delete the book symbols 《》 as well):

    • spring.datasource.url=jdbc:mysql://localhost:3306/《Database Name》?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false
    • spring.datasource.username=《Database Username》
    • spring.datasource.password=《Database Password》
  2. Run the MySQL database 和 execute the _localhost-2025_01_05_16_10_48-dump.sql file from the repository to create tables, including test data. The account 和 password are in the user table.

  3. Run 2025-1-4\MavenDemo\src\main\java\com\etc\boot\Application.java.

  4. In the 2025-1-4\VUE\ folder, open a terminal 和 enter the following commands in sequence:

    • pnpm install
    • pnpm dev
  5. Enter http://localhost:5173/ in the browser to access the system.

JDK21 MavenDemo/pom.xml file

<dependency>
  <groupId>org.projectlombok</groupId>
  <artifactId>lombok</artifactId>
  <version>1.18.36</version>   // add this line
  <optional>true</optional>
</dependency>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published