Alan-Gomes / mcspring-boot

A Spring boot starter for Bukkit/Spigot/PaperSpigot plugins
MIT License
78 stars 25 forks source link

Not listening on port #35

Closed ben-j-c closed 3 years ago

ben-j-c commented 3 years ago

Hello,

I'm trying to write a simple REST API plugin, however I am facing some issues getting the spring application listening on any port. The plugin builds fine and is seemingly loaded (banner, no errors, etc.), however when I check a list of listening ports on my server, it seems that the port for the API is missing (8080).

I've annotated my application class with @RestController and @SpringBootApplication and have added a couple @GetMapping annotations to my functions, but I'm not sure if this is enough. My security configuration required an additional @EnableWebSecurity annotation to be loaded, so I am unsure if I'm missing something.

Please let me know what information you need from me.

Any help would be greatly appreciated. I am inexperienced with Spring, so detailed explanations would be appreciated.