Closed brainafesoh closed 4 years ago
@brainafesoh please try remove the <type>pom</type>
from your dependency block and try again?
@brainafesoh also, your application.yml should read
server:
port: ${env.PIMPIM_REGISTRY_PORT:8761}
(note the env.
)
I haven't heard from you recently and I hope this solved your issue. Please reopen if not.
Also had this issue. This solved beautifully after struggling a bit to setup bintray.
@Henriquelay @brainafesoh the artefact is now available on Maven Central
https://mvnrepository.com/artifact/me.paulschwarz/spring-dotenv
Hello, thanks for the initiative of creating this dependency. It's an issue I've been facing ever since I started working with springboot (since I come from a nodejs background) However, I tried adding the dependency to a simple maven based project but wasn't able to make it work after all.
application.yml
file that contains the various project configs.PIMPIM_REGISTRY_PORT=9999
pom.xml
fileHowever when I run the project, my server still starts on default port 8761 rather than 9999 as precised in the![image](https://user-images.githubusercontent.com/13622888/81145907-2d289e80-8f6f-11ea-8ac8-baed290430f5.png)
.env
fileAlong with this message that make me feel like there's something not done right.![image](https://user-images.githubusercontent.com/13622888/81146101-8b558180-8f6f-11ea-9a4e-a393d882c533.png)
Thanks for any help!!