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
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.