I'm using Spring Boot and in a unit test, I'm trying to mock the Files.delete(myFile.toPath()) method. To do so I'm trying to use the Mockito.mockStatic() metho
I was asked to implement an in memory cache mechanism in my spring boot application. My application is related to social media. User can register and login User
I am building a Spring Boot application. I like to set a variable for the Spring Boot application. This variable should be set in an HTTP inte
My current code look like this. I am not using any ORM framework like Hibernate. I need to use this raw SQL query. public List<String> getEndcodedKeyByLen
I'm using OpenAPI generator to generate Spring REST APIs. Here is a fragment: openapi: 3.0.2 info: version: 1.0.0 title: Auth paths: '/auth/v1/token':
I have Spring Boot web app which work on IntelliJ. I build jar file from maven. Jar starts but css, js and img "blocked" in Chrome console show error 404, Firef
In eclipse whenever we copying a java dynamic web project into new one by renaming it and trying to run the new copied project in tomcat server it causes below
Anyone can help me? I made a Modal with a form to update a database. I receive data from Mysql DB but when i click on submit, the modal closes, but new paramete
I am trying to save an encrypted password in postgreSQL database with BCrypt and I have an error. I saw the other answers on stackoverflow I tried to use those
When I try to download a file on a workbench with 3000+ records, a 404 nginx error crashes. When I try to download a file with fewer entries, everything is ok.
I am new to GlusterFS. After watching this video https://youtu.be/IGEtVYh0C2o , I have a big picture of how the GlusterFS servers are working. I understand a cl
{ "onboardingInformation": { "apiInvokerPublicKey": "string", "apiInvokerCertificate": "string", "onboardingSecret": "string" }, "notification
Currently I have many spring boot services annotated with @Service. Every service works fine and there are no problems. There is a problem only with LogsService
I am developing a library with a Spring framework and adding as a dependent for different frameworks. Does Spring framework @Value annotation inside library wor
Here is what I have done so far: https://github.com/jnbdz/tutorial-baeldung-spring-security-cas-sso In here you can see my configs: https://github.com/jnbdz/tut
I am upgrading my Spring project 4.1.6 to 5.2.21. But now when I run my Tomcat 8.5.65 I catch this message error: org.springframework.beans.factory.BeanCrea
We can create proxy for the target bean in the postProcessAfterInitialization() method of BeanPostProcessor. Or we can use AOP - and proxy will also be created
I'm upgrading an application that's hosted on WebSphere 9 running IBM JDK 8 from Spring 4.0.3 to 5.3.18. While doing so I updated the project's Jackson, Woodsto
I need to set task name dynamically for activiti 7, just like below snippt code: <userTask id='theTask' name='${taskNameDynamically}' > ... </u
I was working on implementing web sockets in springboot, I followed the example spring has given in there docs. But I am getting cors error while trying to conn