I am trying to set a custom header on my RestTemplate requests. I'm using Spring Boot 2.0.6.RELEASE
I try setting them like so, inside of my public method
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
headers.add("muh Header", "muh value");
Every...
I get this error 'HttpHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>>)' has private access in 'java.net.http.HttpHeaders' when trying to make an instance of HttpHeaders headers = new HttpHeaders() inside of a public method
I'm new to Java, I want to write a function that will accept an ArrayList of any type, i've tried `ArrayList<T> someArray` but I keep getting `MyMath.java:7: error: cannot find symbol public static boolean isEmpty(ArrayList<T> someArray)`
yes, try that, then if that works, it will be the logic of the reducer that is the issue, or the details are not being passed to action. check if the are not empty.