refactor(config): 重构应用配置文件结构

- 将application.yml中的配置项按环境分离到对应配置文件
- 在application-dev.yml中添加服务器和应用配置
- 在application-prod.yml中添加生产环境支付配置
- 在application-test.yml中添加测试环境支付配置
- 删除application-paypal-example.yml示例文件
- 在主应用类中启用PingPong配置属性支持
- 更新配置文件激活方式为profiles模式
This commit is contained in:
2025-12-23 16:03:10 +08:00
parent 7794accdeb
commit 48dc5acddc
6 changed files with 71 additions and 109 deletions

View File

@@ -1,12 +1,15 @@
package com.mtkj.mtpay;
import com.mtkj.mtpay.config.PingPongProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.core.env.Environment;
@Slf4j
@SpringBootApplication
@EnableConfigurationProperties({PingPongProperties.class})
public class MtPayApplication {
public static void main(String[] args) {