Can I configure Grails with no datasource?

后端 未结 4 1410
猫巷女王i
猫巷女王i 2020-12-05 14:18

I have a Grails app that loads its data from xml files and delivers rss feeds via rome. I don\'t have any domain classes and my app has no datasource. I don\'t want Grails t

4条回答
  •  心在旅途
    2020-12-05 14:46

    I was able to comment out the data source and get a default grails app to run. Comment out your production section in the same way I commented out the following code in datasource.groovy

    
    /*  development {
            dataSource {
                dbCreate = "create-drop" // one of 'create', 'create-drop','update'
                url = "jdbc:hsqldb:mem:devDB"
            }
        }*/
    

    I was also able to remove the hibernate plugin using "grails uninstall-plugin hibernate" and still have the default app run. I haven't done extensive testing with this but hopefully this works for you.

提交回复
热议问题