Open yangtao5826 opened 1 year ago
Have you solved the problem? How to solve, can you provide some ideas
I also encountered the same problem, but I don't know how to solve it
it's seem the same issue jasypt:3.0.5 spring boot:2.5.15
logging: config: classpath:logback-${spring.profiles.active}.xml `mvn jasypt:encrypt -Dspring.profiles.active=prod -Djasypt.encryptor.password="test2024" -Djasypt.plugin.path="file:src/main/resources/application-prod.yml
demo\src\main\resources>dir
2024/08/22 17:50 4,668 application-dev.yml
2024/08/22 17:50 4,136 application-prod.yml
2024/08/22 17:50 4,135 application-stage.yml
2024/08/22 17:55 3,060 application.yml
2024/08/22 17:06 3,673 logback-dev.xml
2024/07/24 15:20 3,668 logback-prod.xml
2024/08/22 17:06 3,675 logback-stage.xml
error:
class path resource [logback-prod.xml] cannot be resolved to URL because it does not exist
When I use Spring Boot 2.7.12 and Jasy PT 2.0.0, I also encounter the problem of outputting springAppName_IS_UNDEFINED in the log. When debugging in the local development environment, except EncryptablePropertySourceConferter, the other logs are gray, but when starting the service in the server with java -jar, the original gray logs are not output.
jasypt version:3.0.5 springboot version:3.0.0 bootstrap.yml:
application.yml:
logback.xml:
run project,i get the log file: springAppName_IS_UNDEFINED_8081.log