From 063aff963af3f16b80741b9551d645d07106aa83 Mon Sep 17 00:00:00 2001 From: Wonder Date: Fri, 10 Oct 2025 15:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=94=84Update:=20=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + pom.xml | 56 +++++++++++++++++++ .../java/cn/hezhaohui/pc/Application.java | 13 +++++ src/main/resources/application.yml | 6 ++ 4 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/cn/hezhaohui/pc/Application.java create mode 100644 src/main/resources/application.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76b946f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.target \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3555600 --- /dev/null +++ b/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 3.2.2 + + + cn.hezhaohui.pc + permission-control + 1.0-SNAPSHOT + jar + + Permission Control + AOP-based permission control system with custom annotations and RBAC + + + 21 + 21 + UTF-8 + + + + + + org.springframework.boot + spring-boot-starter-web + + + + + mysql + mysql-connector-java + 8.0.30 + + + + + com.baomidou + mybatis-plus-spring-boot3-starter + 3.5.14 + + + + + org.projectlombok + lombok + provided + + + diff --git a/src/main/java/cn/hezhaohui/pc/Application.java b/src/main/java/cn/hezhaohui/pc/Application.java new file mode 100644 index 0000000..0f56e3c --- /dev/null +++ b/src/main/java/cn/hezhaohui/pc/Application.java @@ -0,0 +1,13 @@ +package cn.hezhaohui.pc; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +@MapperScan("cn.hezhaohui.pc.mapper") +public class Application { + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..d48352e --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,6 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: dn293830 + url: jdbc:mysql://47.121.181.112:3306/pc \ No newline at end of file