Grails Spring - How to initialize Spring project when Grails Application run

I have a spring project which I am using as Jar in a Grails 3.0 application. This project is about interacting with the database. How can I initialize a spring project in a Grails 3.0 application?

In tests I have initialize this jar like this

@ContextConfiguration(locations = {"classpath*:spring-config.xml"})
public class ScenarioEntityPersistenceTest extends AbstractTestNGSpringContextTests

Answers


Added this in resource.groovy and problem was solved.

beans = {
   importBeans('classpath*:spring-config.xml')
}

Need Your Help

flashing images tableview reuse bug see the video link -->http://www.youtube.com/watch?v=jwEsqjc9sNc&feature=youtu.be

ios tableview reusability

here's the code : i am downloading image from my core data on background and put it on my image view.

Is it possible to create a single page application using MongoDB as a backend?

asp.net-mvc mongodb asp.net-web-api

I am trying to use the new single page application project from the upcoming Visual studio and I was wondering if it would be possible to create an application using a MongoDB backend for the DBCon...