-1
연결 (id : 358250360)은 14 : 11 : 55,420으로 획득되어 14 : 11 : 55,471에 출시되었으며 51ms를 커버했으며이 51ms 스프링 세션 동안 7 번의 업데이트 작업을 수행했습니다. 이는 URL에 액세스하는 경우에만 발생합니다. 많은 사용자가 동시에 온라인 상태 인 경우 풀의 연결이 부족할 수 있습니다. 나는 그것이 jdbc와의 스프링 세션의 사실인지 궁금하다. 또는 나는 약간의 설정을 놓쳤다.jdbc와의 스프링 세션이 동시에 업데이트 세션 테이블
14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,420 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,420 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,420 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,417 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [592735956, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,421 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,417 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,422 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,422 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,422 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,423 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [744825705, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,425 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,427 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,428 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,428 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1153338657, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,431 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1153338657, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,431 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,431 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,431 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,431 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,433 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,433 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1724464517, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,434 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,435 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [832455532, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,435 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,437 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [384136626, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,437 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1843345656, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [970762077, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,438 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [970762077, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,441 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,441 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,441 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,442 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1843345656, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,442 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,443 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [933084215, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,444 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,442 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,445 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,445 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,446 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,447 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1825775842, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,447 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,448 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,448 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,448 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1674506398, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1283280084, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,449 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1283280084, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1367061108, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,450 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,450 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1367061108, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,451 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,451 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION SET LAST_ACCESS_TIME = ?, MAX_INACTIVE_INTERVAL = ?, PRINCIPAL_NAME = ? WHERE SESSION_ID = ?]
14:11:55,453 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1674506398, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,453 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL update
14:11:55,454 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement [UPDATE SPRING_SESSION_ATTRIBUTES SET ATTRIBUTE_BYTES = ? WHERE SESSION_ID = ? AND ATTRIBUTE_NAME = ?]
14:11:55,454 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Returning BLOB as bytes
14:11:55,455 DEBUG: org.springframework.jdbc.support.lob.DefaultLobHandler - Set bytes for BLOB with length 979
14:11:55,455 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,456 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,460 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,461 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [1356824368, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,461 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
14:11:55,455 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [194367212, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,465 DEBUG: org.springframework.jdbc.core.JdbcTemplate - SQL update affected 1 rows
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Initiating transaction commit
14:11:55,465 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Committing JDBC transaction on Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver]
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Acquired Connection [738764354, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] for JDBC transaction
14:11:55,468 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Switching JDBC Connection [738764354, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] to manual commit
14:11:55,468 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL query
14:11:55,468 DEBUG: org.springframework.jdbc.core.JdbcTemplate - Executing prepared SQL statement
14:11:55,471 DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Releasing JDBC Connection [358250360, URL=jdbc:postgresql://10.24.11.231:5432/a, UserName=postgres, PostgreSQL Native Driver] after transaction
14:11:55,471 DEBUG: org.springframework.jdbc.datasource.DataSourceUtils - Returning JDBC Connection to DataSource
'JdbcOperationsSessionRepository'는 명시 적으로'setAttribute (K, V)'만을 인식하는 것으로 보이므로'saved'' updatedCount'가 유효합니다. 'getAttribute (K)'에서 V return으로 맵을 사용하고'setAttribute'없이 맵을 변경했습니다. 그러나 저장소 클래스는이를 유지하지 않습니다. 이것은 정상적인'HttpSession' (세션을 가져올 때 다음 번에 업데이트 할 수있는)의 동작과 충돌합니다. – Tiina
Spring Session'SessionRepository' 구현은 세션을 외부 데이터 저장소에 저장하기 때문에 repo에서 반환 된 세션 인스턴스는 실제로 변경 될 때 저장해야하는 사본입니다. 서블릿 컨테이너의 기본 세션 관리자는 일반적으로 Tomcat과 같은 메모리에 있으며, 이는 동일한 세션 객체를 항상 다루므로 설명 된 접근 방식을 벗어날 수 있습니다. 이것은 HttpSession과 충돌하지 않습니다. AFAIK는 API의 어디에도 문서화되어 있지 않기 때문입니다. Tomcat의 지속적인 세션 관리자를 사용하면 같은 상황이 발생합니다. –
'JdbcOperationSessionRepository'의'updatedCount'는 실제로 "업데이트 된"값을 업데이트 된 것으로 취급해야합니다. 이제는 필수 조건으로이를 분명히 실행합니다. – Tiina