there two questions ('Cannot resolve symbol') here sounds a bit similar:
This question its much diffecent i think: Cannot resolve symbol
but this ('Cannot resolve symbol') gives me ideas: Cannot resolve symbol
solution there is by adding a google...ndroid dependency
that's why I tried this:
import com.android.volley.Request.Method.GET;
and its gets red. so line 2 and 11 is red now of this source:
package com.example.demo;
import com.android.volley.Request.Method.GET; // <== red
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
System.out.println("hiHo");
}
@RequestMapping(name = "/test", method = RequestMethod.GET) // <== red
public String helloWorld() { return "hi"; }
}
if you interested in the complete source: https://gist.github.com/5cb61eb89573d5882991aab7ba860b9b
most of it is a downlod from https://start.spring.io/ without dependicies. i addet spring-boot-starter-jetty in the pom.xml