File tree Expand file tree Collapse file tree
apps/unicorn-store-spring/src/main
java/com/unicorn/store/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,10 +140,10 @@ private Optional<String> getContainerOrPodIp() {
140140
141141 JsonNode root = OBJECT_MAPPER .readTree (response .body ());
142142
143- if (root .has ("Networks" ) && root .path ("Networks" ).isArray () && root .path ("Networks" ).size () > 0 ) {
143+ if (root .has ("Networks" ) && root .path ("Networks" ).isArray () && ! root .path ("Networks" ).isEmpty () ) {
144144 JsonNode network = root .path ("Networks" ).get (0 );
145145 if (network .has ("IPv4Addresses" ) && network .path ("IPv4Addresses" ).isArray () &&
146- network .path ("IPv4Addresses" ).size () > 0 ) {
146+ ! network .path ("IPv4Addresses" ).isEmpty () ) {
147147 return Optional .of (network .path ("IPv4Addresses" ).get (0 ).asText ());
148148 }
149149 }
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ spring.jpa.open-in-view=false
77spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults =false
88spring.jpa.hibernate.ddl-auto =none
99
10+ spring.datasource.hikari.initialization-fail-timeout =0
1011spring.datasource.hikari.maximumPoolSize =1
1112spring.datasource.hikari.allow-pool-suspension =true
1213spring.datasource.hikari.data-source-properties.preparedStatementCacheQueries =0
You can’t perform that action at this time.
0 commit comments