Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
92 views
in Technique[技术] by (71.8m points)

Twitter Bootstrap with Spring MVC

I'd like integrate Twitter Bootstrap with an existing Spring MVC Project. Search returns abstract results with no tutorials or articles that outlines how to integrate the UI focused Bootstrap with Spring MVC.

What are the the steps in terms of configuration involved to integrate the frameworks?

Thanks

question from:https://stackoverflow.com/questions/15189437/twitter-bootstrap-with-spring-mvc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...