Twitter bootstrap 如何在Grails3.0.4中配置twitter引导?

Twitter bootstrap 如何在Grails3.0.4中配置twitter引导?,twitter-bootstrap,grails-3.0,Twitter Bootstrap,Grails 3.0,我需要将Grails2.4.4应用程序迁移到Grails3.0.9。有人能解释一下如何配置twitter引导插件以及如何使用它吗。在build.gradle中放置了以下依赖项之后:它成功了。 After placing the following dependencies in build.gradle: it worked. build.gradle: compile 'org.webjars:bootstrap:3.3.5' compile "org.grails:gra

我需要将Grails2.4.4应用程序迁移到Grails3.0.9。有人能解释一下如何配置twitter引导插件以及如何使用它吗。

在build.gradle中放置了以下依赖项之后:它成功了。
After placing the following dependencies in build.gradle: it worked.

build.gradle:

    compile 'org.webjars:bootstrap:3.3.5'
    compile "org.grails:grails-web-boot"
    compile "org.webjars:typeaheadjs:0.11.1"
    compile "org.webjars:bootstrap-tagsinput:0.5"
    compile "org.webjars.bower:bootstrap-table:1.8.1"

application.js:
//= require jquery-2.1.3.js
//= require_tree .
//= require_self
//=require js/jquery-ui-1.10.4.custom.min.js
//=require bootstrap
//=require typeahead
///= require /webjars/bootstrap/3.3.5/js/bootstrap.min
//= require /webjars/bootstrap-tagsinput/0.5/bootstrap-tagsinput
//= require /webjars/typeaheadjs/0.11.1/typeahead.bundle.js

application.css:

*= require main
*= require mobile
*= require_self
*= require webjars/bootstrap/3.3.5/css/bootstrap-theme
*= require webjars/bootstrap/3.3.5/css/bootstrap
*= require webjars/bootstrap-tagsinput/0.5/bootstrap-tagsinput

in the gsp:

    <g:layoutTitle default="main"/></title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <asset:stylesheet src="application.css"/>
    <asset:javascript src="application.js"/>
    <asset:javascript src="boo.js"/>
    <asset:javascript src="jquery-ui.js"/>
    <g:layoutHead/>
build.gradle: 编译“org.webjars:bootstrap:3.3.5” 编译“org.grails:grailswebboot” 编译“org.webjars:typeaheadjs:0.11.1” 编译“org.webjars:bootstrap标记输入:0.5” 编译“org.webjars.bower:bootstrap表:1.8.1” application.js: //=需要jquery-2.1.3.js //=需要一棵树。 //需要自己 //=需要js/jquery-ui-1.10.4.custom.min.js //=需要引导 //=需要提前打印 ///=require/webjars/bootstrap/3.3.5/js/bootstrap.min //=require/webjars/bootstrap-tagsinput/0.5/bootstrap-tagsinput //=require/webjars/typeaheadjs/0.11.1/typeahead.bundle.js application.css: *=需要主管道 *=需要移动电话 *需要自己 *=需要webjars/bootstrap/3.3.5/css/bootstrap-theme *=需要webjars/bootstrap/3.3.5/css/bootstrap *=需要webjars/bootstrap-tagsinput/0.5/bootstrap-tagsinput 在普惠制中:
build.gradle依赖项和application.yml条目都非常有用。另外,请务必注释掉main.css。