build(biji-houdaun): 配置生产环境并优化构建流程
- 新增 production环境配置文件 application-prod.yml - 更新 Dockerfile,设置生产环境变量 - 为 Knife4j 配置添加环境限制,仅在非生产环境激活 - 在 pom.xml 中添加开发和生产环境配置 - 更新编译打包命令文档,增加生产环境构建指令
This commit is contained in:
@@ -5,8 +5,10 @@ import io.swagger.v3.oas.models.info.Info;
|
||||
import org.springdoc.core.models.GroupedOpenApi;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
|
||||
@Configuration
|
||||
@Profile("!prod") // 只在非生产环境激活
|
||||
public class Knife4jConfig {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user