• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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
Posts: 98
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this going to be a tutorial thread?
 
Marshal
Posts: 62240
193
  • 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: 991
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: 20128
103
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: 991
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: 20128
103
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: 991
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: 20128
103
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.
 
The problems of the world fade way as you eat a piece of pie. This tiny ad has never known problems:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!