I'm using spring security with REST, and I'm using the URL (/logout) as an endpoint for my logout method. But after calling this method, it redirect me to (/log
I have been trying to solve a Java exercise on a Codility web page. Below is the link to the mentioned exercise and my solution. https://codility.com/demo/res
I have a date on String, like this: String date="25.07.2007"; And I want to divide it to: String day; String month; String year; What is the best way to do
I wanted to find unused dependencies in my project. Is there a feature for this in Gradle, like in Maven?
I tried to create a profile preference like WhatsApp where the profile photo is shared with the profile activity. I used the following code which works properly
I very much want to use Map.computeIfAbsent but it has been too long since lambdas in undergrad. Almost directly from the docs: it gives an example of the ol
When I run the Eclipse.exe within the given folder, it will not start. The Eclipse splash screen will appear for a split second then close. There are no errors.
I'm trying to understand difference between error and exception but it looks same thing and on Oracle Official tutorials I read this line. Checked exceptio
I have a question about constructing an ArrayList, I have had a Car Class, now I need to make an ArrayList to put content in, I named it as Race, please see cod
I am using Primefaces 3.5 with JSF 2 and have a dataTable: <p:dataTable id="dataTable" var="refType" value="#{rtmUiController.listAllRefTypes()}" pag
I want to display in a <p:growl> that the session has expired. I found many methods to handle session expiration like: Session timeout and ViewExpiredExce
I have 2 domain models and one Spring REST Controller like below: @Entity public class Customer{ @Id private Long id; @OneToOne(fetch = FetchType.EAGER) @Joi
I have been using vscode with no problems until recently. Now no errors show up, some variables never change color. And I have a constant error message: Projec
I would like to merge two Map with JAVA 8 Stream: Map<String, List<String>> mapGlobal = new HashMap<String, List<String>>(); Map<Str
Given a non-negative int n, compute recursively (no loops) the count of the occurrences of 8 as a digit, except that an 8 with another 8 immediately to its left
I have a JMenu which will include JMenuItems that are generated on start-up from a database. As such, it's quite likely that the menu will be too large and run
I'm using Java with Hibernate. I want to: Save my data to the database Run sql to verify the result If the result is valid, then commit, otherwise rollback So,
I am trying to add an test value to Firebase Database by following code: FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference ref = F
I want to post data to the url and getting Null pointer exception My JSON URL contains { "Details": [ { "Status":"NO UPDATES" }
Is there a possibility to instruct Swagger not to send the Hypertext Transfer Protocol (http) in front of a POST or GET request ? As you can see on the screens