3
我想在我的Grails應用程序使用fullcalendar插件,我越來越沒有找到所有的fullcalendar CSS和JS文件資源:Grails是沒有找到fullcalendar CSS和JS文件給資源
Error|
Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.css
Resource not found: /plugins/full-calendar- 1.5.1.0/css/fullcalendar.print.css
Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.css
Resource not found: /plugins/full-calendar- 1.5.1.0/css/fullcalendar.print.css
Resource not found: /plugins/full-calendar-1.5.1.0/js/fullcalendar.min.js
Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.css
Resource not found: /plugins/full-calendar-1.5.1.0/css/fullcalendar.print.css
Resource not found: /plugins/full-calendar-1.5.1.0/js/fullcalendar.js
我Grails中使用
compile ":full-calendar:1.5.1.0"
2.3.7
理想我想這應該看看在Grails的2.3.7在實際文件的插件/ web應用/ CSS或JS文件夾當下。
我包括使用
<fullcal:resources/>
乾淨
和Grails沒有做任何魔法這次fullcalendar。
下面是fullCalendarResources.groovy配置文件
modules = {
'full-calendar' {
dependsOn 'jquery'
dependsOn 'jquery-ui'
resource url: [ plugin:'full-calendar', dir:'css/fullcalendar', file:'fullcalendar.css' ]
resource url: [ plugin:'full-calendar', dir:'css/fullcalendar', file:'fullcalendar.print.css' ], attrs: [ media: 'print' ]
resource url: [ plugin:'full-calendar', dir:'js/fullcalendar', file:'fullcalendar.js' ],
disposition:'head', nominify: true
}
}
我的基本問題是爲什麼會在插件/ {插件名}尋找/ CSS,而不是在web-app文件夾?