|

Why I Like Spring III

If it’s not yet obvious, I’m a big fan of Spring, especially how easy Spring Boot works with Docker, since you can essentially take your war file & almost run it like an executable, it makes life so, so easy. I won’t make this post too long, I’m tired, you’re probably tired & I’ve already written two other articles about why Spring rocks.

Spring is quite beautiful in the way it encourages clean architecture, personally I LOVE the resource, service & repository oriented architecture. I mean obviously this style of architecture may not work for all applications out there, but for most REST API’s I think it’s fair to say it’s hard to go wrong.

If you look at this example that I’ve forked on Git, you can see just how easy it is, no need to worry about an application server, no need to worry about files such as jboss-deployment-structure.xml or other files like the web.xml file. In this specific example if you want to use a different port or specify a context path, you just update the pom file, specifically by tinkering with the jetty-maven-plugin , it’s that simple.

One thing that I worship about this solution exactly is that it’s not tying you into a specific vendor, yes it does use Jetty, but looking at documentation, to implement this solution with say Tomcat, it wouldn’t be all that different. In the repository that I’ve shared, personally I love that solution as I’m a big fan of JAX-RS, I just love the syntax & I’ve been using it for a couple of years now. Not to mention that this solution even illustrates how you can embed a database into the application.

However, while I do love Spring, I have decided to being looking into alternative technologies also, I simply don’t want to tie myself down to one framework & who knows, it may make me a better all round developer. I’ve specifically taken an interest in Quarkus, since it’s meant to be optimal for containerisation, specifically branded as “Supersonic Subatomic Java“.

Similar Posts

  • |

    Enterprise

    Being a developer that’s come from a background of working for relatively small companies, it’s been an interesting experience working for Admiral Group Plc so far. In my little time at Admiral, I’ve changed the way I think about things, the way I tackle things, etc, it used to be the case where I was…

  • JVM – Garbage Collection

    Introduction WARNING! – A lot of this content is just regurgitated content from the java magazine article that’s referenced below, if you’d like more detail, please refer to the article, this is a shortened overview at most. I’ve written this article to help educate myself & hopefully others! 🙂 Having read an article from Java…

  • |

    Why I Like Spring II

    Okay, so in my previous article, I stated some of the things that I like about Spring, although, it doesn’t stop there, Spring is just beautiful for MSA and/or distributed applications. Not to mention how popular Spring is, Spring may just be the most popular Java framework at this moment in time, having used more…

  • Ambitions: 2020

    First of all… Happy new year! 🥳 All round 2019 wasn’t too bad, career wise I was able to achieve working for an enterprise company, rather than a start up, which of course opened my eyes to new technologies & processes. For the following years I have a lot of ambitions, one being progressing to…

  • | | | |

    Microservice Architecture

    Microserivce, a fun buzzword, an alternative for SOA, however, terms aside, one thing that I personally love thinking about is the underlying architecture regarding microservices. From looking at more primitive solutions such as just having some cluster with a bunch of services, maybe if you’re lucky having some application gateway sitting in front of the…

Leave a Reply

Your email address will not be published. Required fields are marked *