1
This commit is contained in:
2024-01-18 16:50:19 +08:00
parent 9c94beecff
commit e82f1187dc
7 changed files with 33 additions and 16 deletions

View File

@@ -11,5 +11,4 @@ public class FinalApplication {
public static void main(String[] args) {
SpringApplication.run(FinalApplication.class, args);
}
}

View File

@@ -0,0 +1,11 @@
server:
address: 127.0.0.1
port: 8090
spring:
datasource:
url: jdbc:mysql://42.193.20.110:8006/darry_ring?useSSL=false
username: dr
password: lN9mO1xL0mO0zR8j
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:

View File

@@ -1,3 +0,0 @@
server.address=0.0.0.0
server.port=8090
debug=false

View File

@@ -0,0 +1,3 @@
spring:
profiles:
active: dev

Binary file not shown.

View File

@@ -1,9 +1,10 @@
CREATE TABLE IF NOT EXISTS user (
user_id INTEGER PRIMARY KEY,
user_name TEXT,
phone_number TEXT NOT NULL,
password TEXT NOT NULL
);
user_id INT AUTO_INCREMENT PRIMARY KEY,
user_name VARCHAR(255),
phone_number VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL
);
INSERT INTO user (user_name, phone_number, password) VALUES ('1', '1', '1');
INSERT INTO user (user_name, phone_number, password) VALUES ('admin', '13882787918', 'admin');