08-02-2023, 02:38 PM
My Spring Boot application runs with 3 configurations:
- application.properties --> for development environment
- application-test.properties --> for test environment
- application-production.properties --> for production environment
How is it possible to get in thymeleaf environment the application is running?
I need to include the Google Analytics code only in production environment.
- application.properties --> for development environment
- application-test.properties --> for test environment
- application-production.properties --> for production environment
How is it possible to get in thymeleaf environment the application is running?
I need to include the Google Analytics code only in production environment.