spring
WebSocket @Autowired
WebSocket @Autowired
2022.09.14`@SeverEndPoint`가 있는 컨트롤러에서 `@Autowired` 사용 시 오류 발생 시 해결 방법 [Error 로그]ERROR [2022-09-12 22:31:49,989] [nio-8080-exec-8] o.a.coyote.http11.Http11NioProtocol :175 - Error reading request, ignoredjava.lang.IllegalArgumentException: javax.websocket.DeploymentException: Endpoint instance creation failed at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:..
spring boot transaction
spring boot transaction
2022.09.08여러 DB를 접속할 때 DB 별 트랜잭션 설정을 부여하는 방법 `DataSourceConfig`에 어노테이션 추가 및 `PlatformTransactionManager` 추가@EnableTransactionManagement@Beanpublic PlatformTransactionManager testTransactionManager() { DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(); transactionManager.setDataSource(testDataSource()); return transactionManager;} @Transactionl 붙일 때 아래와 같이 추가@T..