Skip to content

Tag: java

Application failed after added swagger configuration

I’m using spring boot and I want to add swagger configuration, the problem is after I run the application I get this error: In my class I added this methods: In my pom.xml I added this dependencies: I can’t understand what is wrong, I followed online solution asking me to add @EnableSwagger2WebMv …

How do I install jarsigner on Amazon Linux 2?

My understanding is that jarsigner is packaged with OpenJDK, which I’ve installed by running Now I have a bunch of synlinks to the jdk, like so: However, I don’t have jarsigner in the bin directory: What else do I need to do to install this binary? Answer It appears Amazon follows the RedHat packa…

Can I add a delay to a call to a Stub method in Spock?

I’m using the Spock Framework to test some Java classes. One thing I need to do is add a delay to a Stub method that I’m calling, in order to simulate a long-running method. Is this possible? This looks possible using Mockito: Can I delay a stubbed method response with Mockito?. Is it possible usi…