No video

Spring Boot Quick Start 9 - Starting a Spring Boot application

  Рет қаралды 842,889

Java Brains

Java Brains

Күн бұрын

Access the full course here: javabrains.io/...
Learn how to start a Spring Boot application andn access it!

Пікірлер: 179
@shubhamjindal9214
@shubhamjindal9214 2 жыл бұрын
For the people who are watching in 2022, I would suggest generate the spring project using the spring initializer (taught in the video -22 of this playlist itself), as the versions of the projects mentioned in the video are outdated and may give you loads of errors when you even simply run the application
@manishakumari4501
@manishakumari4501 2 жыл бұрын
thank you
@priyabansal2021
@priyabansal2021 2 жыл бұрын
Thank you
@nehazafar277
@nehazafar277 2 жыл бұрын
thank you
@lucasbritodev255
@lucasbritodev255 2 жыл бұрын
Thanks a lot
@geetanjaligaddam3121
@geetanjaligaddam3121 2 жыл бұрын
Use parent 2.4.0
@denislafauci1756
@denislafauci1756 4 жыл бұрын
Thanks to your tutorias, I finally understood, how does it work Spring Boot. Thank you very for your clear explanation!
@sathya8242
@sathya8242 Жыл бұрын
Absolutely nice tutorial. just an FYI, If anyone trying in these days(April 2023), just have the 3.0.6 replaced, inorder to avoid seamless running of the application.
@annkitsingh1646
@annkitsingh1646 2 жыл бұрын
its 2.6.1 for me. If it doesn't works for you just make a additonal spring starter project and there pom.xml generated automatically from where you can look which version will work for you.
@Modern_revolution
@Modern_revolution 6 жыл бұрын
As usual these playlists provide excellent support
@shaikhasif15752
@shaikhasif15752 6 жыл бұрын
Awesome tutorials man.. No one can teach this better than You
@ARUNABHPRIYADARSHI
@ARUNABHPRIYADARSHI 6 жыл бұрын
1.5.7.RELEASE clears all the server start errors. this is something you should update even in future
@DeepsWar
@DeepsWar 3 жыл бұрын
This comment helped with the startup issue! Thanks much! But is there a way to know which is the latest version. Where can I find that info?
@suyashgupta3149
@suyashgupta3149 3 жыл бұрын
Thanks for this man
@ARUNABHPRIYADARSHI
@ARUNABHPRIYADARSHI 3 жыл бұрын
@@suyashgupta3149 my comment was two years ago. wow glad it helped.
@preetiram5264
@preetiram5264 3 жыл бұрын
thank a lot for this comment. It helped me too with startup issue.
@sarath12345ful
@sarath12345ful 7 жыл бұрын
+javabrains Many of you are getting errors. Here's the fix: Kindly delete your .m2/repository folder, close the project, (if possible IDE) and then open it, run the class file. It shall work properly.
@thrinathsf1280
@thrinathsf1280 7 жыл бұрын
You are just awesome bro. Thank you so much...
@sebastiansony2000
@sebastiansony2000 7 жыл бұрын
Awesome! worked for me too!
@icebergu
@icebergu 6 жыл бұрын
lol i was becoming crazy downloading all the jars cause i receive a different error each time for dependencies :P Thanks a lot
@mikeahmed7092
@mikeahmed7092 6 жыл бұрын
@Sarath Chandra Where exactly to you access your repository Folder? Please Help. Thanks in Advance
@Zaria_20
@Zaria_20 6 жыл бұрын
Thanks bro
@MainakDev
@MainakDev 2 жыл бұрын
getting error when I go to run this as shown at 4:44 "Cannot load configuration class: io.javabrains.springbootstarter.CourseApiApp" Solution for people watching in the future: Change spring boot version to 2.1.0 org.springframework.boot spring-boot-starter-parent 2.1.0.RELEASE
@JeanScuba
@JeanScuba 7 жыл бұрын
1.5.2.RELEASE clears all the server start errors.
@ShyamSuthar2204
@ShyamSuthar2204 7 жыл бұрын
Thanks i had same problem updating to 1.5.2 resolved server start error
@alexandreformagio1909
@alexandreformagio1909 7 жыл бұрын
I had this problem: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/joran/JoranConfigurator at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.getConstructor(Class.java:1825) at org.springframework.boot.logging.LoggingSystem.get(LoggingSystem.java:126) at org.springframework.boot.logging.LoggingSystem.get(LoggingSystem.java:117) at org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartedEvent(LoggingApplicationListener.java:225) at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:205) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121) at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:63) at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:48) at org.springframework.boot.SpringApplication.run(SpringApplication.java:304) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) at io.javabrains.springbootstarter.CourseApiApp.main(CourseApiApp.java:10) Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.joran.JoranConfigurator at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Your advice solved my problem. Thanks
@choonghuh
@choonghuh 6 жыл бұрын
Thanks friend!
@tamimsyedr691
@tamimsyedr691 6 жыл бұрын
Awesome. Fixed my issue.
@harshithasd7623
@harshithasd7623 3 жыл бұрын
Thank you
@shoppersdream
@shoppersdream 7 жыл бұрын
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
@DialecticalMaterialismRocks
@DialecticalMaterialismRocks 3 жыл бұрын
The Anual update for those if it doesn't work: org.springframework.boot spring-boot-starter-parent 2.3.5.RELEASE Always take the newest version. This seems to work for me.
@deepankargubba683
@deepankargubba683 3 жыл бұрын
This is the solution to most errors! It really helps.
@reshmashaik4100
@reshmashaik4100 3 жыл бұрын
It works. Thank You!!
@sujalgera01
@sujalgera01 Жыл бұрын
It really helps. Thanks a lot
@saurabhjoshi8001
@saurabhjoshi8001 Жыл бұрын
It really worked...thanks buddy😀
@vijay12376
@vijay12376 3 жыл бұрын
I simply loved this quick start tutorial !
@computerprogrammingwebtech3017
@computerprogrammingwebtech3017 2 жыл бұрын
Spring boot makes it easier to build and run applications. That is why it is better than the Spring which requires much more of boiler plate codes to have your apps running.
@RudhinMenon
@RudhinMenon 6 жыл бұрын
Thank you so much for taking time and doing this :-) it helped a lot
@Debjyotimaitra
@Debjyotimaitra 5 ай бұрын
used "2.1.1.RELEASE" as the version and it worked
@jopadjr
@jopadjr 4 жыл бұрын
Great tutorial. I will finish all of them. Cheers.
@adarshregulapati8872
@adarshregulapati8872 3 жыл бұрын
If you are getting an Error Always use the latest release of Parent version we can get that from mvn repository
@girisankar
@girisankar 3 жыл бұрын
Thanks JavaBrains Team :)
@prat-man
@prat-man 4 жыл бұрын
Use 1.X for JDK X
@cyrelm
@cyrelm 5 жыл бұрын
Thanks! Great video.
@swathisatheesan9840
@swathisatheesan9840 6 жыл бұрын
Hi am getting the below error while running the application.. main] o.s.boot.SpringApplication : Error handling failed (ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context:org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2e4b8173: startup date [Thu Jan 01 01:00:00 GMT 1970]; root of context hierarchy) 2018-03-21 12:06:16.541 ERROR 1352 --- [ main] o.s.boot.SpringApplication : Application startup failed java.lang.IllegalArgumentException: Sources must not be empty at org.springframework.util.Assert.notEmpty(Assert.java:276) ~[spring-core-4.3.4.RELEASE.jar:4.3.4.RELEASE] can anyone help?
@Nightaxeblade
@Nightaxeblade 3 жыл бұрын
For some reason, from the previous video, I keep getting error in my intellij when I try to run this. First I'm getting errors in my pom.xml as the parent project is not being found. Now in the CourseApiApp class @SpringBootFramework is not found.
@femishotunde2264
@femishotunde2264 6 жыл бұрын
Guys just look up the latest release and use that in your parent version. That should solve the issue.
@adarshregulapati8872
@adarshregulapati8872 3 жыл бұрын
Thank You ,this Helped me...
@subhashkunala281
@subhashkunala281 3 жыл бұрын
@@adarshregulapati8872 This helped me, thnk you so much
@Dante031
@Dante031 5 жыл бұрын
@java brains I know only core java, is this the best way to start directly from springboot. Or there are certain things i need cover before i come here? If yes Please let me know what else i need to learn before springbot.
@IamRishavDas
@IamRishavDas 5 ай бұрын
You should learn Working of servlet Https requests Jdbc Jstl MVC Orm Hibernate 😂😂
@IamRishavDas
@IamRishavDas 5 ай бұрын
I know I am replying 4 years later 😂
@hossamaddin7980
@hossamaddin7980 3 жыл бұрын
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. ========================================================================================== This error is caused because the startup class is built directly under the Java folder. Actually, you need to create a new subfolder under the Java folder and then create the startup class.
@bnmdevilop
@bnmdevilop 4 жыл бұрын
sir when i run as java application there is an error that localhost:8080 already in use and when i open the link it requires username and password .Is there any solution to this problem?
@swiss_2k
@swiss_2k 6 жыл бұрын
Didnt know that the Class where the main method is, should be anyware but not in the default package! /java/otherPackage...
@vishwachaitanya9221
@vishwachaitanya9221 5 жыл бұрын
i am not able to imporat @SpringBootApplication and SpringBootApplication.Run imports can u pls help me
@naare20201
@naare20201 Ай бұрын
I am getting this error while running the app " No active profile set, falling back to default profiles: default" can you plz help me on this?
@khuleasmanonke3601
@khuleasmanonke3601 6 жыл бұрын
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean. 2018-02-20 00:16:19.486 ERROR 2028 --- [ main] o.s.boot.SpringApplication : Application startup failed
@anordinarydancer
@anordinarydancer 5 жыл бұрын
Did exactly same steps . But it shows "Application startup failed" erroron the console.
@manishjoshi1296
@manishjoshi1296 5 жыл бұрын
Change the version from 1.4.2 to 2.1.3
@dibyarai9924
@dibyarai9924 3 жыл бұрын
adding following dependency worked for me: javax.xml.bind jaxb-api 2.3.0
@anantpratapsingh9067
@anantpratapsingh9067 2 жыл бұрын
@@manishjoshi1296 bro ye version hai kiska ide ka spring ka ya fir khuch or hi hai
@kencykurian9714
@kencykurian9714 6 жыл бұрын
Make sure that the main class is under the same package as mentioned in the pom's groupid
@pryakks
@pryakks 6 жыл бұрын
not necessary
@BarotDevaNgJsontech
@BarotDevaNgJsontech 5 жыл бұрын
Use this Configuration Which is given on docs.spring.io/spring-boot/docs/current/reference/html/getting-started-first-application.html or copy and paste this POM.xml org.springframework.boot spring-boot-starter-parent 2.0.5.RELEASE org.springframework.boot spring-boot-starter-web 1.8
@ayandutta3207
@ayandutta3207 7 жыл бұрын
Hi Guys, I think my port 8080 is already in use. Can you tell me how to change the default port of Spring Boot integrated Tomcat server? I am getting the below error while trying to run the application:- "The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured."
@Ark0wski
@Ark0wski 7 жыл бұрын
change the port with adding a file called application.properties to the resources folder. Inside the file just write: server.port = 8081 or whatever port you need or want.
@RudhinMenon
@RudhinMenon 6 жыл бұрын
You can add it to the program VM like this : 1. Right click on project. 2. Run as -> Run configurations 3. Under "arguments" tab, type -Dserver.port=, click apply and run your app. :)))
@kishorsingh4409
@kishorsingh4409 6 жыл бұрын
I tried every solution provided on stackoverflow & lot of other sites but this is the only solution that worked. Kudos!! Thanks for the help.
@xGrofx
@xGrofx 6 жыл бұрын
Thank yo Arek :)
@subasishkar9469
@subasishkar9469 2 жыл бұрын
Followed till now but while running the app now getting few errors and unable to resolve
@Locuslokalokuza
@Locuslokalokuza 5 жыл бұрын
Springboot looked like old school compared to playframework, just my opinion
@KhanekeDiwane
@KhanekeDiwane Жыл бұрын
what is servlet container?
@arunkasturi7866
@arunkasturi7866 5 жыл бұрын
Add 1.5.7.RELEASE in , org.springframework.boot spring-boot-maven-plugin org.apache.tomcat.maven tomcat7-maven-plugin 2.2 Adding these plugins helped and worked for me.
@venkatk161
@venkatk161 6 жыл бұрын
I successfully run the application by having the following versions. org.springframework.boot spring-boot-starter-parent 1.4.2.RELEASE org.springframework.boot spring-boot-starter-web org.springframework spring-core 4.3.5.RELEASE 1.8
@venkatk161
@venkatk161 6 жыл бұрын
you don't need to mention spring-core dependency, if you use 1.5.7.RELEASE for spring-boot-starter-parent
@monikajha3500
@monikajha3500 6 жыл бұрын
Worked for me too.. Thanks Venkat K
@jyotinadda
@jyotinadda 5 жыл бұрын
Thanks worked for me.
@danishrockz1
@danishrockz1 3 жыл бұрын
when I start my app.. then my given SOP gets printed & JVM terminated.. tomcat server is not running.. wt to do ? need to install tomcat plugin separately in my eclipse IDE ???
@fundooapp8919
@fundooapp8919 5 жыл бұрын
org.springframework.boot spring-boot-starter-parent 2.1.5.RELEASE in this release getting error in pom.xml done with all approch clean install update everything
@yahiaamr7639
@yahiaamr7639 3 жыл бұрын
error in @SpringBootApplication can not import!! although spring Boot was installed !!
@newperson2187
@newperson2187 2 жыл бұрын
I am facing this error java.lang.IllegalStateException: Cannot load configuration class: io.javabrains.springbootstarter.CourseApiApp Please help
@borakdfg684
@borakdfg684 2 жыл бұрын
For people who are facing issues, try below. The solution is maintain the current version of spring boot. For me it is 2.4.1 org.springframework.boot spring-boot-starter-parent 2.4.1 The solution was found in comments.
@ajaydhiman2368
@ajaydhiman2368 5 жыл бұрын
This basic application is not running. Tomcat didn't start. localhost:8080/hello is not working.Pls suggest
@sanyamjain9461
@sanyamjain9461 6 жыл бұрын
I am trying to do the same code in eclipse and getting exception that classNotFound...plz help Does it really require STS? Plz reply ASAP
@kiranchandrachintakindi1216
@kiranchandrachintakindi1216 3 жыл бұрын
seeing below error. couldnot get useful resouce on stackoverflow. Any solution for this? org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.http.encoding-org.springframework.boot.autoconfigure.web.HttpEncodingProperties': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]
@chidambaramv6695
@chidambaramv6695 2 жыл бұрын
I didn't get error page when search localhost 8080 in browser. What should I do. Any one knows please help me
@KwstasAntoniou1
@KwstasAntoniou1 7 жыл бұрын
hello i am getting that erro : Description Resource Path Location Type Archive for required library: 'C:/Users/cliff/.m2/repository/org/springframework/spring-core/4.3.9.RELEASE/spring-core-4.3.9.RELEASE.jar' in project 'DemoApp' cannot be read or is not a valid ZIP file DemoApp Build path Build Path Problem
@anujsachan7971
@anujsachan7971 7 жыл бұрын
hello kaushik i 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 ?
@raziahmad2574
@raziahmad2574 7 жыл бұрын
Change the version of spring boot 1.4.2 to 1.4.3 1.4.3.RELEASE
@dhiru7853
@dhiru7853 7 жыл бұрын
thanks mate!
@himmoroy
@himmoroy 6 жыл бұрын
For some reason this won't work with newer versions. Java v. 10 didn't compile at all. Had to downgrade to 1.8. Springframework.boot 2.0.2.RELEASE didn't work either (@SpringBootApplication not found). Downgrading to 1.5.2 resolved problems.
@pratyushpradhan2612
@pratyushpradhan2612 6 жыл бұрын
thank you very much
@vk-p
@vk-p 7 жыл бұрын
SpringApplication is not static class.
@louiseisobelevans
@louiseisobelevans 5 жыл бұрын
I got this when running.... it worked until it got to Tomcat loading. I'm on osx java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_131] at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_131]
@anjusingh1573
@anjusingh1573 7 жыл бұрын
Please upload some videos on websocket programming using Spring Boot Without STOMP and SockJS and Client should be Java not Javascript.
@rishabh_gour
@rishabh_gour 6 жыл бұрын
guys just google and put the latest version for the parent tag. Currently it is 2.0.2.RELEASE
@himanshusuman8565
@himanshusuman8565 7 жыл бұрын
its not taking "@SpringBootApplication" but @SpringBootConfiguration and this is not working
@vishwachaitanya9221
@vishwachaitanya9221 5 жыл бұрын
i am also facing this issue can u pls tell me how to resolve this issue
@hariswaroop3780
@hariswaroop3780 6 жыл бұрын
can anyone help me i didnot get port number in output
@baismail-daily
@baismail-daily 2 жыл бұрын
Awesomeagain
@nikhilnagireddy754
@nikhilnagireddy754 7 жыл бұрын
getting this:::::::>>Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
@pryakks
@pryakks 6 жыл бұрын
Don't user Default package. Keep your java files into particular package. Default package ignores @SpringBootApplication annotations to load properly all the jar files.
@DevineIshaq107
@DevineIshaq107 4 жыл бұрын
why is your lesson eclipse oriented and not general ??
@kwoowoo828
@kwoowoo828 4 жыл бұрын
WTF, a one-liner web app. "Hey Siri, create a web app for me" Siri: "Task too complicated to create. Task aborted." "Idiot, go talk to your friend Spring Boot. Remember its Spring Boot and not Spring. You must have been talking to Spring all these while." Siri: "Alright, and task done in 2.535 sec. Spring Boot is my new friend now. Deleting Spring from friend list."
@anushakota2364
@anushakota2364 7 жыл бұрын
hi, I had to change version to 1.4.3 in pom.xml to resolve import issues, but now I am getting below exception when i run: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.http.encoding-org.springframework.boot.autoconfigure.web.HttpEncodingProperties': Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath. can someone tell me solution for this?
@SanketKD400
@SanketKD400 7 жыл бұрын
Just change your parent version to 1.5.2.RELEASE org.springframework.boot spring-boot-starter-parent 1.5.2.RELEASE
@sushruthlokam
@sushruthlokam 7 жыл бұрын
Hi Koushik, Am getting below error APPLICATION FAILED TO START *************************** Description: The Bean Validation API is on the classpath but no implementation could be found Action: Add an implementation, such as Hibernate Validator, to the classpath what to do?
@titokris5162
@titokris5162 6 жыл бұрын
Thanks Alex, got it started!!!
@titokris5162
@titokris5162 6 жыл бұрын
@ AlexTatulescu But TomCat didn't start!!
@devanshgupta3140
@devanshgupta3140 11 ай бұрын
Hi, upon trying to run the java application, I am getting the following error: - Cannot load configuration class: io.javabrains.springbootstarter.CourseApiApp Can someone please help me out here.....
@devanshgupta3140
@devanshgupta3140 11 ай бұрын
Use parent 2.4.0 Found the SOLUTION thanks to @geetanjaligaddam3121
@DainiusDainius
@DainiusDainius 6 жыл бұрын
Tried add Spring Boot maven project to STS - errors, to IntelliJ - same shit. Tried to add Spring Boot gradle to IntelliJ - working, to STS - working. Bullshit.
@thiagosilvafarias1893
@thiagosilvafarias1893 4 жыл бұрын
Did anyone get the Warning Message on the console after pressing run? WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/Users/thiagofarias/.m2/repository/org/springframework/spring-core/4.3.13.RELEASE/spring-core-4.3.13.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
@purplepidge
@purplepidge 4 жыл бұрын
Yes. Did you solve this in the end?
@thrinathsf1280
@thrinathsf1280 7 жыл бұрын
I tried the same but unable to start. Got below exception: java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext ............... ............... Caused by: java.lang.NoClassDefFoundError: com/fasterxml/classmate/TypeResolver I tried by changing different versions and added plugin: spring-boot-maven-plugin but NO use. Can anyone help with this?
@siddhaarth8843
@siddhaarth8843 4 жыл бұрын
try with a valid package for the main class, not the default package, it worked for me.
@abhisekcrazy
@abhisekcrazy 6 жыл бұрын
I am getting this exception and not able to resolve this, tried the same thing what Kaushik said but still facing this Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/env/PropertySource at io.javabrains.course.CourseApiApp.main(CourseApiApp.java:10) Caused by: java.lang.ClassNotFoundException: org.springframework.core.env.PropertySource at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more
@WildGrassWildGoat
@WildGrassWildGoat 6 жыл бұрын
Did you get any solution for this abishek?
@abhisekcrazy
@abhisekcrazy 6 жыл бұрын
Yes, I have upgraded the version to 1.5.2, 1.5.2.RELEASE
@eimaisklhros
@eimaisklhros 6 жыл бұрын
ApplicationContextException followed by 5-6 more exceptions :( that's sad
@bhavyasharma7740
@bhavyasharma7740 6 жыл бұрын
eimaisklhros did you get any resolution
@ahmadsolehin6237
@ahmadsolehin6237 7 жыл бұрын
thx
@himanshusuman8565
@himanshusuman8565 7 жыл бұрын
its showing "Error: Could not find or load main class spring.api.MainDemo" help plz...
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
This is due to Maven dependency conflict. Close eclipse > deleting .m2/repository folder where maven dependencies are saved > open project again > update Maven > It should start working.
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
.m2 is saved in C:\users or just look at the maven dependency folder. Each file shows the location in Project Explorer.
@ajaydhiman2368
@ajaydhiman2368 5 жыл бұрын
javaw.exe stops after couple of seconds
@aboynextgirl549
@aboynextgirl549 6 жыл бұрын
Bro I am getting no classdeffounderror while doing like this
@pryakks
@pryakks 6 жыл бұрын
put your java class inside some package. default package gives noclassfound exception
@AmitSingh-vl9vw
@AmitSingh-vl9vw 7 жыл бұрын
Error: Could not find or load main class
@TrulyLordOfNothing
@TrulyLordOfNothing 6 жыл бұрын
This is due to Maven dependency conflict. Close eclipse > deleting .m2/repository folder where maven dependencies are saved > open project again > update Maven > It should start working.
@TrulyLordOfNothing
@TrulyLordOfNothing 5 жыл бұрын
If you are using windows, it is within the C:/Users/User/m2. If its linux, use a search command for 'm2'
@souravak6982
@souravak6982 3 ай бұрын
2.7.5
@rashmiranjanbeura4391
@rashmiranjanbeura4391 6 жыл бұрын
This video is not very helpful, you give a new developer these videos and make him run the project. It will not work
@SuperGomez97
@SuperGomez97 6 жыл бұрын
Now, I'm a bit late with this comment, but to be fair, but he says in the beginning that a prerequisite for this course is an understanding of JavaEE. To understand JavaEE, one probably has knowledge in standard Java as well. So this course isn't really for beginners :)))))
@charminarchaupal
@charminarchaupal Жыл бұрын
Three errors I was facing 1.) JRE location not properly set 2.) Version for spring boot starter parent needed to be 2.4.1 and 3.) Group I'd specified at the top of pom.xml was not the same as the package name that contained CourseApiApp.java
@paulfrischknecht3999
@paulfrischknecht3999 5 жыл бұрын
Thanks again. But IMO one-liners are not impressive. Of course everything that someone knows how to code can be done in one line by calling that other person's code...
@akshaysingh962
@akshaysingh962 Жыл бұрын
java.lang.IllegalStateException: Cannot load configuration class: io.javabrains.springbootstarter.CourseApiApp .......I am getting this configuration error
Spring Boot Quick Start 10 - Spring Boot startup steps
3:27
Java Brains
Рет қаралды 700 М.
Spring Boot Quick Start 8 - Creating a Spring Boot project
9:53
Java Brains
Рет қаралды 1 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,5 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН
Top 10 Spring Annotations to know in 2024
26:41
Java Brains
Рет қаралды 80 М.
Do these 5 things first
20:38
Java Brains
Рет қаралды 22 М.
Spring Boot Quick Start 11 - Adding a REST Controller
7:56
Java Brains
Рет қаралды 847 М.
4 Spring Boot Mistakes to AVOID in 2024
15:18
Java Brains
Рет қаралды 58 М.
Spring Boot Tutorial | Full Course [2023] [NEW]
1:37:31
Amigoscode
Рет қаралды 2,8 МЛН
How Spring Boot works internally.
20:12
Sandeep Kudterkar Tech Geek
Рет қаралды 21 М.