Yes, you can write spock test cases for your spring application.
Look at the official documentation for an example of Spock testing with Spring Boot
35.3.1 Using Spock to test Spring Boot applications
A simple google search reveals a basic example of Using Spock to test Spring classes.
Spock relies heavily on the Spring's TestContext framework and does
this via the @ContextConfiguration annotation. This allows the test
specification class to load an application context from one or more
locations.
Spring One g2x has a large presentation on Testing Java, Groovy, Spring and Web Applications with Spock.
Groovy and Java can freely be mixed together you can use any Java based library you like, or use Groovy based libraries.
The Spring framework supports Groovy and - not surprisingly - Spring
TestContext framework works well with Spock Spock specifications can
be run from an IDE just like normal JUnit tests and, last but not
least, implementing them is a great opportunity to learn the Groovy
language.source