init
This commit is contained in:
41
backend/boot-dev/pom.xml
Normal file
41
backend/boot-dev/pom.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>k12study-backend</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>boot-dev</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>auth</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>upms</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>ai-client</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.k12study.bootdev;
|
||||
|
||||
import com.k12study.aiclient.config.AiClientAutoConfiguration;
|
||||
import com.k12study.auth.config.AuthModuleConfiguration;
|
||||
import com.k12study.upms.config.UpmsModuleConfiguration;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
@SpringBootApplication(scanBasePackages = {"com.k12study.bootdev", "com.k12study.common"})
|
||||
@Import({AuthModuleConfiguration.class, UpmsModuleConfiguration.class, AiClientAutoConfiguration.class})
|
||||
public class BootDevApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BootDevApplication.class, args);
|
||||
}
|
||||
}
|
||||
39
backend/boot-dev/src/main/resources/application.yml
Normal file
39
backend/boot-dev/src/main/resources/application.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
server:
|
||||
port: 8088
|
||||
servlet:
|
||||
context-path: /api
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: k12study-boot-dev
|
||||
autoconfigure:
|
||||
exclude:
|
||||
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
|
||||
- org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration
|
||||
- com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration
|
||||
data:
|
||||
redis:
|
||||
host: ${K12STUDY_REDIS_HOST:localhost}
|
||||
port: ${K12STUDY_REDIS_PORT:6379}
|
||||
password: ${K12STUDY_REDIS_PASSWORD:}
|
||||
|
||||
management:
|
||||
health:
|
||||
redis:
|
||||
enabled: false
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
|
||||
auth:
|
||||
enabled: true
|
||||
gateway-mode: false
|
||||
whitelist:
|
||||
- /auth/login
|
||||
- /auth/refresh
|
||||
- /actuator/**
|
||||
|
||||
ai:
|
||||
client:
|
||||
base-url: http://localhost:9000
|
||||
Reference in New Issue
Block a user