It helps to be specific when you talk about Spring because it encompasses a number of projects. It is well-known as an MVC framework, but it can make sense to use it even if you are not developing a web application. In particular, if you need to use libraries that depend on Spring, the easiest way to use them may be to use Spring, too.
That said, when something goes wrong with Spring, it can be notoriously hard to debug. If you are inexperienced with Java, you may be better off staying away from Spring.