This post demonstrates how to render an XML to a file from a given XML template using Spring Boot and Thymeleaf.
Consume RESTful Web Services in Java using RestTemplate
This post demonstrates how to use Spring’s RestTemplate to consume RESTful web services in Java. The codes used are used in a SOA or Microservices context but the key code snippet is about RestTemplate.
Spring Boot + Spring Security with Multiple Login Forms and User Types
I’m working on some personal project that handles 4 different user types (e.g., students, instructors, registrar employees, security personnel). Each user type are stored in a separate user table. With this, I require four (4) login forms.
Parse CSV file uploaded as MultipartFile using Apache Commons CSV
From MultiPartFile to Reader object [wp_ad_camp_5] The parse method only accepts a single java.io.Reader object and you may need to convert the MultipartFile object to a Reader object. The MultipartFile class has the getInputStream() whose return value can be passed
Using Spring @Autowired with @Qualifier
This article demonstrates how to qualify beans of the same reference type in Spring. @Qualifier enables you to select and use a particular bean from a set of beans of the same type existing in the Spring container.
How to use Spring XmlBeanFactory
XmlBeanFactory is one of Spring’s containers that provide dependency injection. Note that it has been deprecated already. This means that you should not use this in new development projects.
How to get HttpServletRequest Object in JSF
So you’re using JSF and Spring. You thought your application is modern but then you hit a showstopper bug from either library that you could not retrieve the request parameters. Time to use some old-school Servlet/JSP API. This article demonstrates how to retrieve HttpServletRequest object in JSF.
Spring – Configurable Default Value for @Value
This post demonstrates how to use @Value that has both a configurable default value and a hard-coded final fallback value.