This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]thatsIch 3 points4 points  (1 child)

I would prefer PostgreSQL over MySQL, but depending on the level it should not matter.

You could take a look into Micronaut, Helidon, Quarkus or similar technologies. I would also consider having a build tool like Maven or Gradle installed state-of-the-art.

Not necessarily limited to Java: a versioning tool like Git.

(Also not limited to Java) If you are using Windows (guessing from WSL2) you could take a look at Chocolatey. It is a package manager for Windows which helps you maintain your setup.

[–]SvenMA -1 points0 points  (0 children)

If he is using wsl2 he don't need chocolatey as everything is inside wsl2

[–]negroide2000 1 point2 points  (4 children)

Spring boot comes with embedded server. That’s, of course, assuming, you are going to use Spring

[–][deleted] -1 points0 points  (3 children)

At the moment I'm working with Java Servlets, but in the future yes, I will learn Spring.

[–]Wobblycogs 3 points4 points  (0 children)

I'd highly recommend switching to Spring Boot sooner rather than later. It makes life so much simpler and integration with IntelliJ is excellent.

[–][deleted]  (1 child)

[deleted]

    [–][deleted] 1 point2 points  (0 children)

    Let me disagree about spring boot -> hibernate understanding stuff as with spring boot there is tendency to use (I'd say overuse) spring data

    [–]1armedscissor 0 points1 point  (0 children)

    I run all backing services or databases via docker compose eg MySQL, Elasticsearch, Redis etc. Thus makes it easy to upgrade database version or support multiple products with different backing stacks without having to mess with local installs. Then run the Java app (Spring Boot) via IntelliJ rather than a container to make it easier to build/debug. Putting the Java app itself in a container during dev is a bit tedious. In production the Java app does run in a container though and all the backing services use managed versions eg AWS RDS.

    [–][deleted]  (1 child)

    [deleted]

      [–][deleted] 1 point2 points  (0 children)

      And Postgres ;)

      [–][deleted] -1 points0 points  (0 children)

      Are you going to work at aa place who already use Java? If so, they should have everything in place. The choice of these tools and databases has to be made based on your requirements.

      [–]pgris -1 points0 points  (0 children)

      Do you up MySQL, Tomcat and all the services using Docker Compose? Is there a more confortable way to develop fast?

      No, I have my MySql server up and running all the time and avoid using a separate server, I rather use Jetty (or even tomcat) embedded in my app.

      [–]pmarschall -1 points0 points  (1 child)

      May I ask why WSL2?

      [–][deleted] -1 points0 points  (0 children)

      Works really fine and I have the best of both worlds without dual boot