All Questions
569
questions
0
votes
0
answers
60
views
Micronaut Bean Not Found on Websphere
I have a grails 5.3.6 application running on java 8_261.
I am using Intellij ultimate with grails, groovy and spring plugins.
Whenever I do grails run-app, the app launches normally and opens in my ...
0
votes
0
answers
47
views
When I perform spring-boot unit testing, the spring datasource is repeatedly initialized
I'm using Groovy + Spock to perform unit testing for a Spring-boot project. I have two test classes, Test Class A and Test Class B. These two test classes are independent and have no dependency ...
0
votes
0
answers
31
views
Gradle: applying plugin from local Maven repository [duplicate]
I have successfully published the artifact into my local m2 repository at location: .m2\repository\com\example\gradle-binary-plugin\1.0
The name of the plugin is gradle-binary-plugin-1.0.jar
Now, I ...
0
votes
0
answers
24
views
Grails Method is executing asynchronously even when i have not applied any code for asynchronous execution
I am performing bulk download operation in a Groovy-Grail application, from a button where a call from java script ajax goes in controller. In controller method, it creates a zip file in /tmp ...
0
votes
1
answer
267
views
Problems accessing method parameter names of Groovy classes in Spring AOP 6.1+
Since 6.1
"Parameter Name Retention
LocalVariableTableParameterNameDiscoverer has been removed in 6.1."
even with -parameters in the java compiler, we are no longer able to do things like ...
2
votes
1
answer
144
views
Spring Boot @Cachebale annotation not working as expected
I'm currently implementing Spring cache for some of our methods in production. It worked well with a REST controller method using @GetMapping, which makes a call to a service method annotated with @...
0
votes
1
answer
46
views
Join "third party" table using JPA CriteriaBuilder
I´m at my whits end and would love some input to keep me going.
I am trying to use Spring JPA with CriteriaBuilder to query for apartments whose $coordinate is at a smaller distance than X from $...
0
votes
0
answers
53
views
Grails ID in the URL
I'm developing an application using Grails 6.1.0 and Grails Spring security core 6.1.0 plugin found here and followed what was mentioned in this tutorial while working I noticed that the user can ...
1
vote
1
answer
664
views
How to mock bean in springboot groovy and spock tests?
This is a spock test using groovy
This is my code
@SpringBootTest
class SrMetricServiceAspectTest extends Specification {
@Autowired
@Qualifier("potentialSrCreation")
private ...
-2
votes
1
answer
52
views
Spring boot ClassCastException to Jackson
I make simple Spring Boot app with MongoDB and face that issue in my controller class:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController'
Caused ...
1
vote
0
answers
34
views
Dual instances of Service, Spring Framework
SOLVED - Turns out if both the base class (ActivityRuleServiceImpl) and the derived class (MyCompanyActivityRuleServiceImpl) have the @Service annotation then they are two different service instances....
1
vote
0
answers
149
views
How to read a versionCatalog from a *.toml file that is inside a jar
When com.test:version-catalog:1.0.1-SNAPSHOT is a *.toml file than it works. But how to read the file when it's part of a jar? Is there a method that extracts the jar and reads a defined file?
Code to ...
0
votes
1
answer
213
views
How to count Spock Interactions with two different mocks?
I'm having trouble getting Spock test working. I would like to know how to count two different mocks interactions.
I understand that interactions require mocking. However in my case I have two mocks ...
0
votes
1
answer
160
views
Maven running Groovy integration tests using Spock testcontainers
I need to introduce integration tests into a Maven build for a Spring REST application. These test classes are written in Groovy and extends an abstract base class what is based on spock.lang....
0
votes
0
answers
188
views
Grails 5 redirect to another action issue when using Spring Security
I am using Grails 5.2.5 and jdk 1.8. I have implemented Spring Security v.5.0.0-RC1. Everything is working fine. When I try to login (http://subdomain.localhost:8080/login/auth) it is successfully ...