@RestController
public class Application {
@Bean
public JwtTokenStore tokenStore() throws Exception {
JwtAccessTokenConverter enhancer = new JwtAccessTokenConverter();
// N.B. in a real system you would have to configure the verifierKey (or use JdbcTokenStore)
enhancer.afterPropertiesSet();
return new JwtTokenStore(enhancer);
}