chore: scaffold linhelp applications
This commit is contained in:
12
backend/src/main/java/com/linhelp/LinHelpApplication.java
Normal file
12
backend/src/main/java/com/linhelp/LinHelpApplication.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.linhelp;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class LinHelpApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(LinHelpApplication.class, args);
|
||||
}
|
||||
}
|
||||
26
backend/src/main/resources/application-dev.yml
Normal file
26
backend/src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/linhelp?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
||||
username: linhelp
|
||||
password: linhelp
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
|
||||
sa-token:
|
||||
token-name: Authorization
|
||||
timeout: 2592000
|
||||
|
||||
linhelp:
|
||||
storage:
|
||||
endpoint: http://localhost:9000
|
||||
access-key: linhelp
|
||||
secret-key: linhelp123
|
||||
bucket: linhelp
|
||||
11
backend/src/main/resources/application.yml
Normal file
11
backend/src/main/resources/application.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
application:
|
||||
name: linhelp-backend
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.linhelp;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest(properties = {
|
||||
"spring.flyway.enabled=false",
|
||||
"spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration"
|
||||
})
|
||||
class LinHelpApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user