File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,9 @@ springdoc:
2424
2525logging :
2626 level :
27- org.hibernate.orm.jdbc.bind : trace
27+ org.hibernate.orm.jdbc.bind : trace
28+
29+ jwt :
30+ secret : ${JWT_SECRET:test-jwt-secret-key-12345678901234567890} # 운영 시에는 반드시 환경 변수로 설정할 것
31+ access-token-expiration : ${JWT_ACCESS_TOKEN_EXPIRATION:1800} # 30분 (초 단위)
32+ refresh-token-expiration : ${JWT_REFRESH_TOKEN_EXPIRATION:604800} # 7일 (초 단위)
Original file line number Diff line number Diff line change 33 url : jdbc:h2:mem:db_test;MODE=MySQL
44 driver-class-name : org.h2.Driver
55 username : sa
6- password:
6+ password :
7+
8+ jwt :
9+ secret : test-jwt-secret-key-12345678901234567890
10+ access-token-expiration : ${JWT_ACCESS_TOKEN_EXPIRATION:1800} # 30분 (초 단위)
11+ refresh-token-expiration : ${JWT_REFRESH_TOKEN_EXPIRATION:604800} # 7일 (초 단위)
Original file line number Diff line number Diff line change 66import org .springframework .beans .factory .annotation .Autowired ;
77import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
88import org .springframework .boot .test .context .SpringBootTest ;
9+ import org .springframework .test .context .ActiveProfiles ;
910import org .springframework .test .web .servlet .MockMvc ;
1011
1112import static org .springframework .test .web .servlet .request .MockMvcRequestBuilders .get ;
1213import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .status ;
1314
1415@ SpringBootTest
1516@ AutoConfigureMockMvc
17+ @ ActiveProfiles ("test" )
1618class JwtSecurityIntegrationTest {
1719
1820 @ Autowired
You can’t perform that action at this time.
0 commit comments