我有不同的配置application-prod.properties和application-beta.properties文件来运行它:-Dspring.profiles.active=beta或-Dspring.profiles.active=prodwar { version = '0.0.1-SNAPSHOT'我想使用application.properties中的</e
在springboot应用程序中,我在application.properties中有一个属性spring.datasource.url: jdbc:mysql://host1:3306/testuseSSL=false&autoReconnect=true 然而,当我启动应用程序时,它连接到一个完全不同的数据库。因此,当我检查/actuator/env it url中的env值时,它显示该值正在被某个环境属性</em
我需要从同一个项目创建一个springboot jar和spring web mvc war,以便在两个不同的环境中运行。我尝试过让单个war在这两种环境中都能工作,但是springboot jar在容器(非spring-boot环境)中产生了问题,所以最好为这两种环境使用不同的jar/war。现在,在春季mvc之战中,我不想包括spring-boot war (st