If running in the context of a test using the mocking API or bootstrap Grails correctly

来源:互联网 发布:知乎男人最心酸的一生 编辑:程序博客网 时间:2024/06/05 00:48

Message: Method on class [com.xslznl.hxb.MDjbddj01] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly. 出现这个原因是因为在mapping里配置的数据源datasource 'xxxx' 有问题 ,必须是 DataSource.groovy里的dataSource_sqxxh下划线后边的不能写dataSource_sqxxh全名

0 0