chore: scaffold linhelp applications

This commit is contained in:
王鹏
2026-07-07 15:06:33 +08:00
parent 95685efa82
commit edffda2a84
70 changed files with 537 additions and 0 deletions

View 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);
}
}

View 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

View File

@@ -0,0 +1,11 @@
spring:
profiles:
active: dev
application:
name: linhelp-backend
server:
port: 8080
knife4j:
enable: true

View File

@@ -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() {
}
}