37

Twitter Bootstrap を既存の Spring MVC プロジェクトに統合したいと考えています。検索は抽象的な結果を返しますが、UI に重点を置いた Bootstrap を Spring MVC と統合する方法を概説するチュートリアルや記事はありません。

フレームワークを統合するために必要な構成に関する手順は何ですか?

ありがとう

4

2 に答える 2

44

Twitter Bootstrap is a framework for CSS elements, and also some popup and HTML tricks. You can simply put your bootstap.css, jquery.js and bootstrap.js into your existing Spring MVC JSP pages. There is no secret to using both together; it's quite simple.

You can take a look in those examples. They may be useful to you.

Remember that Spring MVC will provide to you all data (via JSON or Model attributes) to build yout HTML file. Bootstrap will only personalize the theme of your page and, sometimes, calling Spring MVC REST endpoints to get Ajax data.

于 2013-03-04T00:07:15.433 に答える