-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Open
Labels
status: pending-design-workNeeds design work before any code can be developedNeeds design work before any code can be developedtype: enhancementA general enhancementA general enhancement
Milestone
Description
Lots of developers use .env to process own configuration for script or app. Now I add spring.config.import
in application.properties as following:
spring.config.import=optional:file:.env
and SpringBoot app throws the following exception:
Caused by: java.lang.IllegalStateException: File extension is not known to any PropertySourceLoader. If the location is meant to reference a directory, it must end in '/'
at org.springframework.boot.context.config.StandardConfigDataLocationResolver.getReferencesForFile(StandardConfigDataLocationResolver.java:199)
at org.springframework.boot.context.config.StandardConfigDataLocationResolver.getReferences(StandardConfigDataLocationResolver.java:121)
I think .env file could be considered as properties file for spring.config.import
.
RahulSDeshpande, TheBestPessimist, dimm-com-ua, zomberg, augustjanse and 45 moreRahulSDeshpande, tungduongbk, AnimeAllstar, durimkryeziu, dzikoysk and 5 moreohbus, thomassloboda, 0-don and hendisantikaohbus, stritti, yildizmy and 0-don
Metadata
Metadata
Assignees
Labels
status: pending-design-workNeeds design work before any code can be developedNeeds design work before any code can be developedtype: enhancementA general enhancementA general enhancement