some optimizations

This commit is contained in:
Rohan Sircar 2019-11-19 20:50:15 +05:30
parent 130525738a
commit 25f55a6262
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ import lombok.Setter;
@Setter
public class LoggedUser implements HttpSessionBindingListener {
private String username;
private final String username;
private UserService userService;
private UserTokenService userTokenService;
@ -37,6 +37,7 @@ public class LoggedUser implements HttpSessionBindingListener {
}
public LoggedUser() {
username = null;
}
@Override

View File

@ -28,9 +28,6 @@ import org.springframework.web.filter.GenericFilterBean;
@Component
public class TokenAuthenticationFilter extends GenericFilterBean {
@Autowired
private TokenRepository tokenRepository;
@Autowired
private UserTokenService userTokenService;

View File

@ -24,4 +24,6 @@ spring.jackson.serialization.write-dates-as-timestamps=false
#spring.cache.type=ehcache3
spring.cache.jcache.config=classpath:ehcache.xml
logging.level.org.springframework.cache = DEBUG
#test.bindAddress=192.168.1.106
#test.bindAddress=192.168.1.106
chatto.token.timeout-duration=10_000