This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create the Maven Project  RSS feed

 
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To quickly get up a new Spring Project, I recommend the awesome Spring Initializr website. There you can easily enter the dependencies you need for your project.

We need the following Spring dependencies:

spring-boot-starter-security
spring-boot-starter-web
mysql-connector-java
Secondly, we also need to add the Speedment dependency as well as the Speedment plugin to generate our code. There is also a Speedment Initializer that I recommend using, It will produce something like this:

 
Author
Ranch Hand
Posts: 95
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this going to be a tutorial thread?
 
Marshal
Posts: 58830
179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Moving to our Spring forum. You appear to have posted the same post twice, so I deleted one unnecessary copy.
 
Rancher
Posts: 949
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with the command line? 

spring init --dependencies=web,data-jpa my-project


 
Bartender
Posts: 19371
86
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Peter Rooke wrote:What's wrong with the command line? 

spring init --dependencies=web,data-jpa my-project





Spring Roo?
 
Peter Rooke
Rancher
Posts: 949
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring Roo died a few years back.   Spring Boot CLI
 
Tim Holloway
Bartender
Posts: 19371
86
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. I tried it. Twice. Never got into it.
 
Peter Rooke
Rancher
Posts: 949
9
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I never really got into Spring Roo.  Seemed like another code generation tool, where I didn't always like (understand) the code it produced.

Spring boot seems to have got it right, take an opinionated viewpoint.   After all, I'll guess that most projects have similar features, with only a few exceptions.  The trick is to allow developers to have enough flexibility to develop the unique parts of their systems but to allow the framework to use best practices.  Ikea Effect.

Sadly I don't get to play with spring boot (much) at work.  
 
Tim Holloway
Bartender
Posts: 19371
86
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's my impression of Roo, too.

Anyway, my typical spin-up of a Spring project is to either use a Maven archetype or to clone an existing project, if I have a suitable model already.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!