Home » Java » Enterprise Java

Enterprise Java

Spring MVC – HTTP message converter

Quite often you need to provide users with the same data, but in different forms, like JSON, PDF, XLS, etc. If your application is Spring Framework based, this task can be achieved using HTTP message converters. HTTP message converters are applied when HTTP request (or its parts) needs to be converted into type required for handler method argument (see: Handler ...

Read More »

Secure Reactive Microservices with Spring Cloud Gateway

spring-interview-questions-answers

Friends don’t let friends write user auth. Tired of managing your own users? Try Okta’s API and Java SDKs today. Authenticate, manage, and secure users in any application within minutes. So you wanna go full reactive, eh? Great! Reactive programming is an increasingly popular way to make your applications more efficient. Instead of making a call to a resource and ...

Read More »

Spring @RequestParam Annotation

spring-interview-questions-answers

Introduction: Spring @RequestParam annotation can be used to extract the query parameters in a handler method. In this quick tutorial, we’ll learn its usage. @RequestParam Annotation: Let’s first expose an API which returns a list of users with a given first name and age: @RestController public class UserController {     ...     @GetMapping("/users")     public List<User> getUsers(@RequestParam String firstName, @RequestParam int age) {         return ...

Read More »

JUnit 5 and Selenium – Using Selenium built-in `PageFactory` to implement Page Object Pattern

Selenium is a set of tools and libraries supporting browser automation and it is mainly used for web applications testing. One of the Selenium’s components is a Selenium WebDriver that provides client library, the JSON wire protocol (protocol to communicate with the browser drivers) and browser drivers. One of the main advantages of Selenium WebDriver is that it supported by ...

Read More »

Efficient enterprise testing — conclusion (6/6)

java-interview-questions-answers

This last part of the series will cover additional end-to-end tests, testing in production, and a conclusion of the parts. Further end-to-end tests & testing in production Besides system tests that only verify a single application-under-test and mock external concerns, our pipeline must also include full end-to-end test that verify the system as a whole. The good news is that ...

Read More »