I just imported the Spring boot initializer zip file, unzipped it and imported it as a Maven project into my IntelliJ. I am getting a lot of errors and I don't know how to resolve those! It seems like Maven isn't dowloading anything.
Error:(3, 32) java: package org.springframework.boot does not exist
Error:(4, 46) java: package org.springframework.boot.autoconfigure does not exist
Error:(6, 2) java: cannot find symbol
symbol: class SpringBootApplication
Error:(10, 17) java: cannot find symbol
symbol: variable SpringApplication
location: class com.example.demo.DemoApplication
Could someone please help? I thought it'd just be a simple import!!
posted 2 years ago
I now got past this error. I had to go through proxy, so I added proxy in settings.xml file and it worked.
Now I added a simple controller but still keep getting the error page:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Dec 27 12:51:37 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
2017-12-27 12:51:23.358 INFO 24196 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-12-27 12:51:23.478 INFO 24196 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2017-12-27 12:51:23.488 INFO 24196 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 5.157 seconds (JVM running for 5.665)
There may be other lines in your logs, which is not shown, which tells you what the valid paths are.
The lines could be something kind of like this:
From these log lines I can tell that I can access the following paths:
“The strongest of all warriors are these two — Time and Patience.” ― Leo Tolstoy, War and Peace
Wanna see my flashlight? How about this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!