Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Using Spring Boot

The module java-cfenv-boot provides several EnvironmentPostProcessor implementations that set well known Boot properties so that Boot’s auto-configuration can kick in. For example, the CfDataSourceEnvironmentPostProcessor sets the Boot property spring.datasource.url. Just add a dependency on java-cfenv-boot.

The list of supported services are:

Databases - DB2, MySQL, Oracle, Postgresl, SqlServer

Properties that could be populated:

  • spring.datasource.url

  • spring.datasource.username

  • spring.datasource.password

  • spring.datasource.driver-class-name

RabbitMQ

Properties that could be populated:

  • spring.rabbitmq.host

  • spring.rabbitmq.username

  • spring.rabbitmq.password

  • spring.rabbitmq.ssl.enabled

  • spring.rabbitmq.port

  • spring.rabbitmq.virtualHost

  • spring.rabbitmq.addresses

Cassandra

Properties that could be populated:

  • spring.cassandra.username

  • spring.cassandra.password

  • spring.cassandra.port

  • spring.cassandra.contact-points

MongoDB

Properties that could be populated:

  • spring.data.mongodb.uri

Redis

  • spring.data.redis.host

  • spring.data.redis.password

  • spring.data.redis.port

  • spring.data.redis.ssl

CredHub

Properties that could be populated:

  • spring.credhub.url

  • spring.credhub.oauth2

Hashicorp Vault

Properties that could be populated:

  • spring.cloud.vault.uri

  • spring.cloud.vault.token

Notes

If, for any reason, you need to disable processing of a specific service instance, you can do so by setting the following flag in your application properties:

cfenv.service.{serviceName}.enabled=false
Morty Proxy This is a proxified and sanitized view of the page, visit original site.