parent
9c94beecff
commit
e82f1187dc
20
pom.xml
20
pom.xml
|
|
@ -17,6 +17,10 @@
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
|
@ -38,23 +42,25 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-plus-core</artifactId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
<version>3.5.4</version>
|
<version>3.5.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mybatis</groupId>
|
<groupId>org.mybatis</groupId>
|
||||||
<artifactId>mybatis-spring</artifactId>
|
<artifactId>mybatis-spring</artifactId>
|
||||||
<version>3.0.2</version>
|
<version>3.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.xerial</groupId>
|
<groupId>com.mysql</groupId>
|
||||||
<artifactId>sqlite-jdbc</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
<version>3.42.0.0</version>
|
<version>8.0.33</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,4 @@ public class FinalApplication {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(FinalApplication.class, args);
|
SpringApplication.run(FinalApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: dev
|
||||||
Binary file not shown.
|
|
@ -1,9 +1,10 @@
|
||||||
CREATE TABLE IF NOT EXISTS user (
|
CREATE TABLE IF NOT EXISTS user (
|
||||||
user_id INTEGER PRIMARY KEY,
|
user_id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
user_name TEXT,
|
user_name VARCHAR(255),
|
||||||
phone_number TEXT NOT NULL,
|
phone_number VARCHAR(255) NOT NULL,
|
||||||
password TEXT 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 ('1', '1', '1');
|
||||||
INSERT INTO user (user_name, phone_number, password) VALUES ('admin', '13882787918', 'admin');
|
INSERT INTO user (user_name, phone_number, password) VALUES ('admin', '13882787918', 'admin');
|
||||||
|
|
|
||||||
Reference in New Issue