1
1
This commit is contained in:
@@ -11,5 +11,4 @@ public class FinalApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(FinalApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
11
src/main/resources/application-dev.yml
Normal file
11
src/main/resources/application-dev.yml
Normal 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:
|
||||
@@ -1,3 +0,0 @@
|
||||
server.address=0.0.0.0
|
||||
server.port=8090
|
||||
debug=false
|
||||
3
src/main/resources/application.yml
Normal file
3
src/main/resources/application.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
Binary file not shown.
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user