Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-a-us committed Feb 19, 2025
2 parents 8a06a9f + 57ea47f commit d185d28
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
// especially for rendering k8s_env.html
hints.reflection().registerType(Map.Entry.class, MemberCategory.values());
// hints.reflection().registerType(HashMap.class, MemberCategory.values());
// Innere Klassen
// inner classes
hints.reflection().registerTypeIfPresent(classLoader, "java.util.HashMap$Node"
, MemberCategory.values());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitialization;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.Optional;

@Component
@DependsOnDatabaseInitialization
public class CounterService {

private static final Logger log = LoggerFactory.getLogger(CounterService.class);
Expand Down Expand Up @@ -56,7 +55,7 @@ private void initCounter() {

Optional<CounterEntity> counter = counterRepository.findById(ID);

if(!counter.isPresent()) {
if(counter.isEmpty()) {
CounterEntity newEntity = new CounterEntity();
newEntity.setId(ID);
newEntity.setCounter(0L);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ logging.level.de.viadee=debug

spring.jpa.hibernate.ddl-auto=update

server.tomcat.max-threads=2
server.tomcat.threads.max=2

management.endpoints.enabled-by-default=true
management.endpoints.access.default=read-only
management.endpoints.web.exposure.include=*
management.health.db.enabled=true
management.endpoint.health.show-details=always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class TestappApplicationTests {
class TestappApplicationTests {

@Test
public void contextLoads() {
@Test
void contextLoads() {
}

}

0 comments on commit d185d28

Please sign in to comment.