Posts Tagged: Java

Home » Java

Using Spring JdbcTemplate Instead of Object-Relational Mapping

Spring JDBC and Spring JdbcTemplate in particular has become my go-to tool for accessing relational databases for quite some time now and for good reason in my opinion: The common way for using data from an RDBMS in an object-oriented context used to be and for the most part still is object-relational mapping (ORM) frameworks like the Java Persistence API (JPA) or Rails' ActiveRecord. As the name suggests these frameworks attempt to map data (and concepts) from relational, set-oriented data structures, which ... Read more

Testing REST Services with REST Assured

RESTful service testing can be unwieldy and difficult to get started with. Providing a REST API implies using a variety of technologies and techniques such as HTTP, JSON, authentication, various payload transfer mechanisms and content types. This is where a tool that abstracts over these technical details and facilitates their application comes in handy. REST Assured is a high-level DSL for testing REST APIs. It draws upon behaviour-driven development (BDD) and hence makes for readable test descriptions. A typical acceptance test with ... Read more

Deploying Spring Boot applications as old-fashioned WAR files

Spring Boot is an opinionated convention-over-configuration framework for creating stand-alone Spring-based Java applications. Its objective is to provide you with a preselected best practice choice of libraries (both from the Spring platform and by third parties) for a given task, e.g. building a web application that connects to a database and provides REST resources creating a scheduled batch task that exports and aggregates data from various data sources providing an API that connects to SOAP Web Services It both helps you with getting started quickly and ... Read more

Googling For Developers

I sometimes jokingly say: "I’m not a good programmer. I just know how to use Google effectively." When programming and being confronted with an unknown error, stack trace or a specific exception message I usually turn to Google in order to find out how other developers with similar problems previously approached these issues. While at face value this might sound easy this requires experience. You have to know enough about software development in general and the environment (language, framework, library, you name it ... Read more

Mockito 2 now available

Last week version 2.1.0 of the Mockito testing framework for Java has been released. For more information on this latest iteration check out this page. As the name suggests, Mockito allows you to mock object behaviour during unit tests. When writing unit tests you only want to test a particular unit's behaviour (hence the name). Depending on the programming language used such a unit might be a function, a procedure or - most commonly in today's object-oriented programming environments - a ... Read more

JHipster: A Spring / AngularJS App Generator

You're a boring, hoary Java developer but secretly always wanted to belong to that hip JavaScript-Single-Page-Application crowd? Well, with JHipster now you can! On a more serious note, JHipster is a Yeoman generator that lets you bootstrap integrated Java (for the back-end server stuff) / AngularJS (for everything front-end and UI) web apps. JHipster makes use of proven technologies such as: Grunt Bower AngularJS Maven Spring Boot Spring Web MVC The project's goal is to provide the means for easily creating a beautiful state-of-the-art HTML5 / CSS3 / JavaScript ... Read more

WebSphere Blues

Lately, I've been doing a lot of work for a customer involving deployment and configuration of applications on IBM WebSphere Application Server. While I really dislike being the grumpy developer I just have to say that WebSphere Application Server - at least till version 6, which is the one I'm working on - sucks beyond measure. I can hardly think of any piece of software as ill-conceived, convoluted and error-prone as this one. Usually, Java applications live up to SUN's "Write once, run anywhere" claim but not so with IBM ... Read more

By continuing to use the site you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or if you click "Accept" below then you are consenting to this.