SringBoot
Application Note:
@RestController: equivalent to binding @ Controller + @ ResponseBody using this annotation inside the class methods are json output format.
@Value ( "$ {xx.xx}"): the value profile is bound to a property.
@ConfigurationProperties (prefix = "com.xxx"): Bean bind a target, but also the need to add @EnableConfigurationProperties inlet SpringBoot class ({Bean.class}) annotation.
logback:
Get logger instance: private static final Logger logger = LoggerFactory.getLogger (CheckToken.class);
pom.xml:
Mapper.xml add files to compile directory
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>