The list of Spring Boot Application Common Properties:
Tuesday, December 18, 2018
Resources for jQuery i18n library
jQuery i18n is a handy library to provide multi-language for your web applications. Below are some useful references:
Inject git last commit id to SpringBoot project
1) Add git-commit-id-plugin in pom.xml
<build>
<plugins>
<plugin>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<includeOnlyProperties>
<includeOnlyProperty>git.commit.id.abbrev</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
</plugin>
...
</plugins>
</build>
...
</plugins>
</build>
2) Get the value via Thymeleaf
<head th:with="abbrev=${@environment.getProperty('git.commit.id.abbrev')}">
<head th:with="abbrev=${@environment.getProperty('git.commit.id.abbrev')}">
Subscribe to:
Comments (Atom)
CSP on Apache
To add CSP to root if sort of funny. The following will NOT work for most cases !! <LocationMatch "^/$"> Header s...
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...