• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jakubnabrdalik/spring-boot-gradle-starter: An example of Gradle running Spring p ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jakubnabrdalik/spring-boot-gradle-starter

开源软件地址(OpenSource Url):

https://github.com/jakubnabrdalik/spring-boot-gradle-starter

开源编程语言(OpenSource Language):

Groovy 45.9%

开源软件介绍(OpenSource Introduction):

spring-boot-gradle-starter

#What is it?

Spring boot (http://projects.spring.io/spring-boot) is an interesting projetc, that aims at simplifying Spring project setup. At this point, though (version 0.5.0.M5) the documentation is a bit lacking, so it's not that easy to use.

So if you have no experience with XML-less Spring setup, this simple project is an example, to checkout out. It is based on official https://spring.io/guides/gs/spring-boot but extended and configured to include a set of tool, that you are likely to use (Groovy, Spock, Spring Data, etc.).

How to run it?

If you have gradle installed and under linux/mac:

gradle runJar

If gradle is not installed, but still under linux/mac

gradlew runJar

And for windows without gradle

gradlew.bat runJar

After the server is running, go to

http://localhost:8080/index.html
user: test
password: test 

The backend is done with

  • Spring Boot 0.5.0.M5
  • Spring 4.0.0.M3
  • Hibernate 4.2.1
  • Spring MVC, Spring Data JPA, Spring security and so on.

There is embedded tomcat and embedded, in-memory hsql inside.

There is a standard set of libs, like guava, joda-time and so on.

Backend is done with Java 7 and Groovy (you can safely mix both as long as you keep your sources in src/main/groovy folder), without any xml. Tests are written in groovy using Spock framework and one with Spring MVC (had to test if my view resolver is working, and that's only possible with spring Dispatcher/Front Controller).

Frontend is using old version of AngularJS, but it's just so you can fire it up and see it works. I used the templating from scotch.io http://scotch.io but changed it out a bit.

A nice tutorial is here: http://scotch.io/tutorials/javascript/single-page-apps-with-angularjs-routing-and-templating




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
lenala/azure-gradle-plugins发布时间:2022-06-14
下一篇:
mukeshsolanki/country-picker-android: A simple library that displays a beautiful ...发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap