parent
9c94beecff
commit
e82f1187dc
20
pom.xml
20
pom.xml
|
|
@ -17,6 +17,10 @@
|
|||
<java.version>17</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
|
|
@ -38,23 +42,25 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-core</artifactId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.5.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis-spring</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<version>3.0.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>3.42.0.0</version>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<version>8.0.33</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
|||
|
|
@ -11,5 +11,4 @@ public class FinalApplication {
|
|||
public static void main(String[] 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 (
|
||||
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