java - Why is spring boot using threads from different packages to handle requests? -
so, followed tutorial myself setup basic authentication.
in looking @ logs, had question whats going on. here log snippet:
2015-08-24 23:08:22.690 info 9732 --- [nio-8080-exec-3] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:08:22 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@ffff4c9c: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 408b23d5ed14118abbc514260b915f5d}] 2015-08-24 23:08:22.691 info 9732 --- [nio-8080-exec-3] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:08:22 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@ffff4c9c: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 408b23d5ed14118abbc514260b915f5d}] 2015-08-24 23:08:22.693 info 9732 --- [nio-8080-exec-3] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:08:22 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@ffff4c9c: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 408b23d5ed14118abbc514260b915f5d}] 2015-08-24 23:09:50.033 info 9732 --- [io-8080-exec-10] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:09:50 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@fffde5d4: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 052aa17446027b428c10624f146b0d84}] 2015-08-24 23:09:50.035 info 9732 --- [io-8080-exec-10] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:09:50 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@fffde5d4: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 052aa17446027b428c10624f146b0d84}] 2015-08-24 23:09:50.037 info 9732 --- [io-8080-exec-10] o.s.b.a.audit.listener.auditlistener : auditevent [timestamp=mon aug 24 23:09:50 edt 2015, principal=user, type=authentication_success, data={details=org.springframework.security.web.authentication.webauthenticationdetails@fffde5d4: remoteipaddress: 0:0:0:0:0:0:0:1; sessionid: 052aa17446027b428c10624f146b0d84}]
to produce these logs did sign in/out twice. question is, why second attempt using different type of thread? first time logged in used nio
thread, , second time used io
thread. info why happened or how configure great.
spring boot's default log pattern allows 15 characters thread's name. when name long, reduces name's length removing characters beginning. nio-8080-exec-10
16 characters long first character removed, leaving io-8080-exec-10
.
Comments
Post a Comment