blocking code deps remove
This commit is contained in:
@@ -57,10 +57,6 @@ dependencies {
|
|||||||
// openapi docs
|
// openapi docs
|
||||||
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
||||||
|
|
||||||
// bolcking 호출 감지
|
|
||||||
implementation 'io.projectreactor:reactor-tools:3.4.9'
|
|
||||||
implementation 'io.projectreactor.tools:blockhound:1.0.6.RELEASE'
|
|
||||||
|
|
||||||
//lombok
|
//lombok
|
||||||
implementation 'org.projectlombok:lombok'
|
implementation 'org.projectlombok:lombok'
|
||||||
annotationProcessor 'org.projectlombok:lombok'
|
annotationProcessor 'org.projectlombok:lombok'
|
||||||
|
|||||||
@@ -21,15 +21,6 @@ public class ReserveCheckSeviceApplication {
|
|||||||
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
||||||
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
||||||
|
|
||||||
//blocking 코드 감지
|
|
||||||
// BlockHound.builder()
|
|
||||||
// //mysql r2dbc 에서 호출되는 FileInputStream.readBytes() 가 블로킹코드인데 이를 허용해주도록 한다.
|
|
||||||
// //해당 코드가 어디서 호출되는지 알지 못하는 상태에서 FileInputStream.readBytes() 자체를 허용해주는 것은 좋지 않다.
|
|
||||||
// // 누군가 무분별하게 사용하게 되면 검출해 낼 수ㅂ 없어 시스템의 위험요소로 남게 된다.
|
|
||||||
// // r2dbc를 사용하기 위해 해당 호출부분만 허용하고 나머지는 여전히 검출대상으로 남기도록 한다.
|
|
||||||
// .allowBlockingCallsInside("dev.miku.r2dbc.mysql.client.ReactorNettyClient", "init")
|
|
||||||
// .install();
|
|
||||||
|
|
||||||
SpringApplication.run(ReserveCheckSeviceApplication.class, args);
|
SpringApplication.run(ReserveCheckSeviceApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,6 @@ dependencies {
|
|||||||
// openapi docs
|
// openapi docs
|
||||||
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
||||||
|
|
||||||
// bolcking 호출 감지
|
|
||||||
implementation 'io.projectreactor:reactor-tools:3.4.9'
|
|
||||||
implementation 'io.projectreactor.tools:blockhound:1.0.6.RELEASE'
|
|
||||||
|
|
||||||
//messaging
|
//messaging
|
||||||
implementation 'org.springframework.cloud:spring-cloud-stream'
|
implementation 'org.springframework.cloud:spring-cloud-stream'
|
||||||
implementation 'org.springframework.cloud:spring-cloud-stream-binder-rabbit'
|
implementation 'org.springframework.cloud:spring-cloud-stream-binder-rabbit'
|
||||||
|
|||||||
@@ -22,17 +22,6 @@ public class ReserveItemServiceApplication {
|
|||||||
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
||||||
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
||||||
|
|
||||||
//blocking 코드 감지
|
|
||||||
// BlockHound.builder()
|
|
||||||
// /**
|
|
||||||
// * mysql r2dbc 에서 호출되는 FileInputStream.readBytes() 가 블로킹코드인데 이를 허용해주도록 한다.
|
|
||||||
// * 해당 코드가 어디서 호출되는지 알지 못하는 상태에서 FileInputStream.readBytes() 자체를 허용해주는 것은 좋지 않다.
|
|
||||||
// * 누군가 무분별하게 사용하게 되면 검출해 낼 수 없어 시스템의 위험요소로 남게 된다.
|
|
||||||
// * r2dbc를 사용하기 위해 FileInputStream.readBytes()를 호출하는 부분만 허용하고 나머지는 여전히 검출대상으로 남기도록 한다.
|
|
||||||
// */
|
|
||||||
// .allowBlockingCallsInside("dev.miku.r2dbc.mysql.client.ReactorNettyClient", "init")
|
|
||||||
// .install();
|
|
||||||
|
|
||||||
SpringApplication.run(ReserveItemServiceApplication.class, args);
|
SpringApplication.run(ReserveItemServiceApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,10 +60,6 @@ dependencies {
|
|||||||
// openapi docs
|
// openapi docs
|
||||||
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.8'
|
||||||
|
|
||||||
// bolcking 호출 감지
|
|
||||||
implementation 'io.projectreactor:reactor-tools:3.4.9'
|
|
||||||
implementation 'io.projectreactor.tools:blockhound:1.0.6.RELEASE'
|
|
||||||
|
|
||||||
//lombok
|
//lombok
|
||||||
implementation 'org.projectlombok:lombok'
|
implementation 'org.projectlombok:lombok'
|
||||||
annotationProcessor 'org.projectlombok:lombok'
|
annotationProcessor 'org.projectlombok:lombok'
|
||||||
|
|||||||
@@ -18,15 +18,6 @@ public class ReserveRequestServiceApplication {
|
|||||||
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
String property = Security.getProperty("jdk.tls.disabledAlgorithms").replace(", TLSv1", "").replace(", TLSv1.1", "");
|
||||||
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
Security.setProperty("jdk.tls.disabledAlgorithms", property);
|
||||||
|
|
||||||
//blocking 코드 감지
|
|
||||||
// BlockHound.builder()
|
|
||||||
// //mysql r2dbc 에서 호출되는 FileInputStream.readBytes() 가 블로킹코드인데 이를 허용해주도록 한다.
|
|
||||||
// //해당 코드가 어디서 호출되는지 알지 못하는 상태에서 FileInputStream.readBytes() 자체를 허용해주는 것은 좋지 않다.
|
|
||||||
// // 누군가 무분별하게 사용하게 되면 검출해 낼 수ㅂ 없어 시스템의 위험요소로 남게 된다.
|
|
||||||
// // r2dbc를 사용하기 위해 해당 호출부분만 허용하고 나머지는 여전히 검출대상으로 남기도록 한다.
|
|
||||||
// .allowBlockingCallsInside("dev.miku.r2dbc.mysql.client.ReactorNettyClient", "init")
|
|
||||||
// .install();
|
|
||||||
|
|
||||||
SpringApplication.run(ReserveRequestServiceApplication.class, args);
|
SpringApplication.run(ReserveRequestServiceApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user