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

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全名

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章