This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "UP", | |
"details": { | |
"db": { | |
"status": "UP", | |
"details": { | |
"database": "HSQL Database Engine", | |
"result": 1, | |
"validationQuery": "SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_USERS" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "UP", | |
"components": { | |
"db": { | |
"status": "UP", | |
"details": { | |
"database": "HSQL Database Engine", | |
"result": 1, | |
"validationQuery": "SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_USERS" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
# Elasticsearch Docker Images: https://www.docker.elastic.co/ | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0 | |
container_name: elasticsearch | |
environment: | |
- xpack.security.enabled=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.jtim.spring.boot; | |
import org.springframework.boot.autoconfigure.condition.ConditionalOnCloudPlatform; | |
import org.springframework.boot.cloud.CloudPlatform; | |
import org.springframework.stereotype.Service; | |
@Service | |
@ConditionalOnCloudPlatform(CloudPlatform.KUBERNETES) | |
public class MyVeryCoolService { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>2.2.0.RELEASE</version> | |
<relativePath/> <!-- lookup parent from repository --> | |
</parent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.jtim.spring.boot.lazy; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.context.annotation.Lazy; | |
import org.springframework.stereotype.Service; | |
import javax.annotation.PostConstruct; | |
@Service | |
@Lazy(value = false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.jtim.spring.boot.lazy; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.context.annotation.Lazy; | |
import org.springframework.stereotype.Service; | |
import javax.annotation.PostConstruct; | |
@Service | |
@Lazy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
jmx: | |
enabled: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.jmx.enabled=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
main: | |
lazy-initialization: true |