简体   繁体   中英

Integrate grails into my Java EE application

I have a simple Java EE application using Servlets and JSP.

Now I want to develop new functionality using Grails within the same application not a new application. Can I add Grails to my existing application?

You'll have more luck the other way round - create a new Grails application, put your existing servlets into src/java , then run grails install-templates and edit the template web.xml to add your <servlet> and <servlet-mapping> tags to that. But note that Grails installs a number of filters that intercept all urls, and these may adversely affect your servlets. You'll have to try it and see what breaks...

It very well depends on the framework ur currently using. I'd try with adding grails' lib subdirectory to the project classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM