File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
api/src/main/java/ca/bc/gov/educ/api/batchgraduation/config Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4
4
import ca .bc .gov .educ .api .batchgraduation .util .LogHelper ;
5
5
import ca .bc .gov .educ .api .batchgraduation .util .ThreadLocalStateUtil ;
6
6
import io .netty .handler .logging .LogLevel ;
7
+ import org .springframework .beans .factory .annotation .Autowired ;
7
8
import org .springframework .context .annotation .Bean ;
8
9
import org .springframework .context .annotation .Configuration ;
9
10
import org .springframework .context .annotation .Profile ;
@@ -27,7 +28,10 @@ public class RestWebClient {
27
28
LogHelper logHelper ;
28
29
EducGradBatchGraduationApiConstants constants ;
29
30
30
- public RestWebClient () {
31
+ @ Autowired
32
+ public RestWebClient (LogHelper logHelper , EducGradBatchGraduationApiConstants constants ) {
33
+ this .logHelper = logHelper ;
34
+ this .constants = constants ;
31
35
this .httpClient = HttpClient .create (ConnectionProvider .create ("batch-api" )).compress (true )
32
36
.resolver (spec -> spec .queryTimeout (Duration .ofSeconds (5 )).trace ("DNS" , LogLevel .TRACE ));
33
37
this .httpClient .warmup ().block ();
You can’t perform that action at this time.
0 commit comments