Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Conflicting Endpoint in Spring Boot Tutorials #1160

Closed
andersonkyle opened this issue Dec 8, 2016 · 1 comment
Closed

Conflicting Endpoint in Spring Boot Tutorials #1160

andersonkyle opened this issue Dec 8, 2016 · 1 comment

Comments

@andersonkyle
Copy link

The Spring Boot Tutorials tell the developer to create an endpoint with this path: /me

@RequestMapping("/me")
    String me() {
        return "me";
    }

However this endpoint is already provided by the SDK. It doesn't cause any failures which is why it may have gone unnoticed. It simply overrides the user defined endpoint seen above, returns JSON instead of a web page, making the experience perplexing to new Stormpath users.

@andersonkyle
Copy link
Author

andersonkyle commented Dec 8, 2016

Thinking about this a little more, the Stormpath Spring Boot Auto Configuration should be more mindful of User Configuration. This should probably fail at startup to remain consistent with Spring Boot behavior regarding conflicting Controller Endpoints.

I'll break this out into a separate issue: #1164

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant