6

I want to make a small web site, and preferably in Java, due primarily to my coding partner. I love micro-frameworks such as Flask in Python, but most frameworks in Java are BIG and/or slow. Examples of this is the Play Framework and Grails. Hate them both.

I just want a minimal approach, but don't want to code with pure Servlets, and so far I have found two:

The Sinatra inspired Spark, and the similar Jogger, which is slightly more recent. I am slightly reluctant to use Jogger, since it is very new and just backed by one guy.

Any other suggestions?

Need to have

  • Easy setup/Adapters for common database backends (Postgres, H2, ...)
  • Filters/Interceptors for pre/post-processing
  • Be easy to work with JSON

Nice to have

  • Results converted based on requested content-type (like JAX-RS does)
  • Annotations for routing
2
  • 1
    @NickWilde added.
    – oligofren
    Apr 2, 2014 at 11:25
  • Spark is your best choice I think :)
    – dimzak
    Apr 3, 2014 at 7:49

2 Answers 2

1

JHipster allows you to create applications with different options for both backend and frontend.

There is a Yeoman generator, generator-jhipster, to quickly generate the application.

From its documentation page:

JHipster is a development platform to generate, develop and deploy Spring Boot + Angular / React / Vue Web applications and Spring microservices.

1
  • 1
    That was a really solid option. Never heard about it until now. After comparing Spark to JHipster, I guess Spark is what fits my bill the closest: a super-simple understandable piece of software that Does-One-Thing - and is still in active development (but not that much - aka stable). Still, no one suggested it as an answer and JHipster is probably the best alternative for someone who wants something comprehensive, so the vote goes to you.
    – oligofren
    Jun 3, 2019 at 19:40
1

Take a look at Stripes. I've had great success with it. The only drawback is that it may no longer be in active development. There's very little configuration -- most everything is convention or annotation to override that -- and it works well with Spring and other DI frameworks.

1
  • Stripes was dead in 2014. The homepage is now some japanese spam network.
    – oligofren
    Jun 3, 2019 at 19:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.