[
https://issues.jboss.org/browse/TEIIDSB-127?page=com.atlassian.jira.plugi...
]
Renat Eskenin commented on TEIIDSB-127:
---------------------------------------
Ok. Spring properties:
{code:java}
spring.profiles.active=local,dev
spring.application.name=odata-facade
springfox.documentation.swagger.v2.path=/api-docs
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
management.endpoint.metrics.enabled=true
management.endpoints.web.exposure.include=*
management.endpoint.prometheus.enabled=true
management.metrics.export.prometheus.enabled=true
server.port=8080
server.error.whitelabel.enabled=true
spring.devtools.restart.log-condition-evaluation-delta=false
spring.datasource.vertica.jdbc-url=jdbc:vertica://cis.local:5433/dwh?SearchPath=bi
spring.datasource.vertica.username=user
spring.datasource.vertica.password=password
spring.datasource.vertica.driver-class-name=com.vertica.jdbc.Driver
spring.datasource.vertica.platform=vertica
spring.datasource.vertica.translator-name=custom-vertica
spring.datasource.vertica.importer.SchemaName=bi
spring.datasource.vertica.importer.DatabaseTimeZone=UTC
spring.datasource.vertica.importer.UseFullSchemaName=false
spring.teiid.model.package=com.model
spring.jpa.hibernate.ddl-auto=none
logging.level.org.teiid=INFO
spring.main.allow-bean-definition-overriding=true
management.server.port=8911
springfox.documentation.swagger.v2.path=/swagger.json
{code}
Datasource
{code:java}
package com.config;
import javax.sql.DataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.teiid.spring.autoconfigure.MultiDataSourceTransactionManagement;
@Configuration
public class DataSources extends MultiDataSourceTransactionManagement {
@ConfigurationProperties(prefix = "spring.datasource.vertica")
@Bean
public DataSource vertica() {
return DataSourceBuilder.create().build();
}
}
{code}
Its all project :)
"No registered data sources found" if used
"management.server.port=8081"
------------------------------------------------------------------------
Key: TEIIDSB-127
URL:
https://issues.jboss.org/browse/TEIIDSB-127
Project: Teiid Spring Boot
Issue Type: Bug
Components: datasource
Affects Versions: 1.2.0
Environment: teiid-spring-boot
Reporter: Renat Eskenin
Assignee: Steven Hawkins
Priority: Major
When we used management.server.port=8081 and server.port=8080 in spring boot properties
we get exception
[2019-10-10 12:12:53,806 MSK] ERROR [test] org.teiid.PROCESSOR
[restartedMain]: TEIID30019 Unexpected exception for request 8fPp+5AbzHhy.0
java.lang.IllegalArgumentException: No registered data sources found
How can we change management port for spring actuator and do not broken Teiid?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)