Access the full course here: javabrains.io/courses/spring_bootquickstart
Learn how to start a Spring Boot application andn access it!
18 Comments on "Spring Boot Quick Start 9 – Starting a Spring Boot application"
To me, it did not work until I add the spring boot maven plugin in pom.xml
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
I had some problems with maven. I solved this using that stackoverflow post: stackoverflow.com/questions/41052805/spring-boot-with-spring-boot-starter-web-fails-to-compile-in-maven 🙂
its not taking "@SpringBootApplication" but @SpringBootConfigurationand this is not working
its showing "Error: Could not find or load main class spring.api.MainDemo"help plz…
hello kaushiki changed spring-boot-starter-parent to 1.4.2. release but i am not able to import SpringApplication.run showing me red line.. how to ressolve it ?
Just change your parent version to 1.5.2.RELEASE<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.2.RELEASE</version> </parent>
mvn dependency:purge-local-repository helped me when I had context issue (stackoverflow.com/questions/40086257/the-type-org-springframework-context-configurableapplicationcontext-cannot-be-re)
Yep. Thank you. Make sure we clean up .m2 folder in Users before we start this project. Otherwise .m2 repo seems to be corrupted. After removing .m2/org/spring … you can select pom.xml, Run As, maven install.. which should do the trick.
I think that you will have to hover over that red sign and then you will see few options. Choose the import option and double click it.It will add an import statement. I hope it works for you. Thanks
In CodeChannels.com, you can learn to code by watching videos and stay up to date with latest code shows, events and tutorials aggregated from various leading developer communities.
Copyright 2016 By CodeChannels.com All rights reserved.