Hey everyone! I’m working on a prototype for a Java app. The frontend is a Swing applet but I need help with the backend. I want it to be a web service that the applet can call.
Here’s what I’m looking for:
- Runs in a servlet container
- Has its own user database (not using Tomcat’s realm)
- Handles app logic and talks to the database (using Hibernate)
I’m new to web dev and there are so many Java frameworks out there. It’s overwhelming! Can anyone suggest a simple framework that would work for this? I need something easy to learn and quick to set up.
Thanks for any tips!
For your Java backend needs, I’d recommend looking into Spring Boot. It’s a fantastic framework that simplifies the setup of standalone, production-grade Spring-based applications. Spring Boot is particularly well-suited for your requirements as it can easily run in a servlet container, manages its own user database, and integrates seamlessly with Hibernate for database operations.
What makes Spring Boot stand out is its ‘convention over configuration’ approach, which means you can get a basic application up and running with minimal setup. It also has excellent documentation and a large community, which is invaluable when you’re learning.
If you’re concerned about the learning curve, don’t worry. Spring Boot’s starter dependencies make it straightforward to add functionality like security and database access. You can gradually expand your knowledge as you build your application.
Remember to keep your initial implementation simple and build up from there. Good luck with your project!
hey, have you checked out dropwizard? its pretty lightweight and easy to get going. you can use it with hibernate no prob. it’s got a built-in jetty server so you dont need a separate container. plus it handles user auth out of the box. might be worth a look for your project!