File tree Expand file tree Collapse file tree 6 files changed +32
-15
lines changed
main/java/com/iluwatar/health/check Expand file tree Collapse file tree 6 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 3636 </parent >
3737
3838 <artifactId >health-check</artifactId >
39-
39+ <dependencyManagement >
40+ <dependencies >
41+ <dependency >
42+ <groupId >org.springframework.boot</groupId >
43+ <artifactId >spring-boot-dependencies</artifactId >
44+ <type >pom</type >
45+ <version >3.2.3</version >
46+ <scope >import</scope >
47+ </dependency >
48+ <dependency >
49+ <groupId >org.hibernate</groupId >
50+ <artifactId >hibernate-core</artifactId >
51+ <version >6.4.4.Final</version >
52+ </dependency >
53+ </dependencies >
54+ </dependencyManagement >
4055 <dependencies >
4156 <!-- Spring Boot Dependencies -->
4257 <dependency >
4358 <groupId >org.springframework.boot</groupId >
4459 <artifactId >spring-boot-starter-web</artifactId >
4560 </dependency >
46-
61+ <dependency >
62+ <groupId >jakarta.xml.bind</groupId >
63+ <artifactId >jakarta.xml.bind-api</artifactId >
64+ </dependency >
4765 <!-- Spring Boot Actuator for health check -->
4866 <dependency >
4967 <groupId >org.springframework.boot</groupId >
105123 <scope >test</scope >
106124 </dependency >
107125
108-
109126 </dependencies >
110127
111128
Original file line number Diff line number Diff line change 11package com .iluwatar .health .check ;
22
3+ import jakarta .annotation .PreDestroy ;
34import java .util .concurrent .CompletableFuture ;
45import java .util .concurrent .CompletionException ;
56import java .util .concurrent .Executors ;
67import java .util .concurrent .ScheduledExecutorService ;
78import java .util .concurrent .TimeUnit ;
89import java .util .concurrent .TimeoutException ;
910import java .util .function .Supplier ;
10- import javax .annotation .PreDestroy ;
1111import lombok .RequiredArgsConstructor ;
1212import lombok .extern .slf4j .Slf4j ;
1313import org .springframework .boot .actuate .health .Health ;
Original file line number Diff line number Diff line change 11package com .iluwatar .health .check ;
22
3+ import jakarta .annotation .PostConstruct ;
34import java .lang .management .ManagementFactory ;
45import java .lang .management .OperatingSystemMXBean ;
56import java .time .Instant ;
67import java .util .HashMap ;
78import java .util .Map ;
8- import javax .annotation .PostConstruct ;
99import lombok .Getter ;
1010import lombok .Setter ;
1111import lombok .extern .slf4j .Slf4j ;
Original file line number Diff line number Diff line change 11package com .iluwatar .health .check ;
22
3- import javax .persistence .Column ;
4- import javax .persistence .Entity ;
5- import javax .persistence .GeneratedValue ;
6- import javax .persistence .GenerationType ;
7- import javax .persistence .Id ;
3+ import jakarta .persistence .Column ;
4+ import jakarta .persistence .Entity ;
5+ import jakarta .persistence .GeneratedValue ;
6+ import jakarta .persistence .GenerationType ;
7+ import jakarta .persistence .Id ;
88import lombok .Data ;
99
1010/**
Original file line number Diff line number Diff line change 11package com .iluwatar .health .check ;
22
3- import javax .persistence .EntityManager ;
4- import javax .persistence .PersistenceContext ;
5- import javax .transaction .Transactional ;
3+ import jakarta .persistence .EntityManager ;
4+ import jakarta .persistence .PersistenceContext ;
5+ import jakarta .transaction .Transactional ;
66import lombok .extern .slf4j .Slf4j ;
77import org .springframework .stereotype .Repository ;
88
Original file line number Diff line number Diff line change 33
44import com .iluwatar .health .check .HealthCheck ;
55import com .iluwatar .health .check .HealthCheckRepository ;
6- import javax .persistence .EntityManager ;
7- import javax .persistence .Query ;
6+ import jakarta .persistence .EntityManager ;
7+ import jakarta .persistence .Query ;
88import org .junit .jupiter .api .Test ;
99import org .junit .jupiter .api .extension .ExtendWith ;
1010import org .mockito .InjectMocks ;
You can’t perform that action at this time.
0 commit comments