+ 2

Help me. The question about Springboot maven project.

I created a Springboot maven project by using Springboot initializer. And then I imported it into eclipse by using option of existing maven project. The project is successfully imported to eclipse. But there's an error in pom.xml file within first three rows. And also I can not run the application. When I am tried to run the application they said can not find the main. Please help me. This is something new I am learning for the first time. Their maybe a lot of mistakes made by myself. So suggest anything. Thank you for your kindness😊.

19th Aug 2020, 5:53 PM
Dulya Perera
Dulya Perera - avatar
4 ответов
+ 4
Make sure you have the correct version of the JDK installed (same that you selected when downloading the initializer). Other than that, it is supposed to work without additional configuration, it is just like a "hello world" of a spring boot app. Maybe Eclipse is the issue, I tried it few months ago but I was not pleased at all. I recommend you use IntelliJ Idea Community Edition instead, it is also free and it just works. https://www.jetbrains.com/help/idea/your-first-spring-application.html https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003254100-IntelliJ-Community-Edition-and-Spring-Boot-
19th Aug 2020, 7:52 PM
Tibor Santa
Tibor Santa - avatar
+ 3
Ah ok...!! I just started to work on IntelliJ Idea. As you said it's good. It's easy. I should try that Springboot application on that.
20th Aug 2020, 9:39 AM
Dulya Perera
Dulya Perera - avatar
+ 2
Thank you for your answer. But why IntelliJ Idea not eclipse.
20th Aug 2020, 1:37 AM
Dulya Perera
Dulya Perera - avatar
+ 2
You can use Eclipse if you want, this is just my personal preference. I found Eclipse user interface very strange and difficult.. And after creating a couple of projects, at some point it eventually stopped working for me (failed with some error during startup). So I gave up quickly on it. Never had that kind of issue with IntelliJ.
20th Aug 2020, 4:45 AM
Tibor Santa
Tibor Santa - avatar