Failed to load property source from location 'file:./application.yml' Skip to main content
https://support.okta.com/help/answers?id=9060z00000078hxqai&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
charles maecharles mae 

Failed to load property source from location 'file:./application.yml'

I am trying to follow the example from Get Started with Spring Boot, OAuth 2.0, and Okta at https://developer.okta.com/blog/2017/03/21/spring-boot-oauth#create-an-openid-connect-app-in-okta
But, I am getting the following error when trying to run the spring run helloOAuth.groovy
20:53:52.247 [runner-0] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Failed to load property source from location 'file:./application.yml'

Any idea what I'm doing wrong?
I have created the application.yml as follows:
security:
  oauth2:
    client:
      clientId:0oafk36pcpb0pQeLY0h7
      clientSecret:x3fxmAKhtGH4OtCNMHWGpUJxibpuKrAdoU-DeeSK
      accessTokenUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/token
      userAuthorizationUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/authorize
      clientAuthenticationScheme: form
      scope: openid profile email
    resource:
      userInfoUri: https://dev-865953-admin.oktapreview.com/oauth2/default/v1/userinfo

 
Tomas PopescuTomas Popescu (Vendor Management)
Hello,

Unfortunately we cannot troubleshoot this without seeing the complete project, but from what I see, you don't have a port added inside, you can add something like:
 server:
port: 8080
It's not necessary to use this specific port.
Best way we can help you with this is to open a case with us so we can go further with the inquiry.

Best Regards,

Tomas Popescu.