Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

85
Vistas
Load Spring application.profiles from S3

I have a multi-environment system for which I have spring profiles assigned. I'd like to be able to assign those profiles based on an environment specific application.properties file.

So far, everything I've read about being able to add additional resource path to spring involves creating a bean and overriding or altering PropertySourcesPlaceholderConfiguration. This however, happens AFTER spring loads profiles (and a few other properties which I'd like to dynamically set).

Is there any way to tell Spring to look for application.properties in S3 prior to it doing anything else?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Create a script to run your application that:

  1. Download the appropriate file from s3. Something like (or any other method):

    s3 cp s3://mybucket/custom.properties custom.properties

  2. Run your app with -Dspring.config.location

    java -jar your-jar.jar -Dspring.config.location=custom.properties

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda