app version mode update

This commit is contained in:
mklee 2025-12-04 14:06:27 +00:00
parent 8a60dfa586
commit b5d380fae5
3 changed files with 47 additions and 16 deletions

View file

@ -23,3 +23,5 @@ logging.level.org.springframework=INFO
# Maximum time static resources should be cached
spring.web.resources.cache.cachecontrol.max-age=12h
app.version=local

View file

@ -84,5 +84,7 @@
<script th:src="@{/webjars/bootstrap/dist/js/bootstrap.bundle.min.js}"></script>
</body>
<div style="position: fixed; bottom: 10px; right: 10px; color: #aaa; font-size: 0.8em;">
Version: <span th:text="${@environment.getProperty('app.version')}"></span>
</div>
</html>