Posts

Showing posts from November, 2020

Sending HTML template base email using spring boot.

Image
 Hello Geeks, hope you all are doing well these days. Recently i was working in my project where a case came, where I had to send an email with attachment in specific format(basically template based). So, after doing a quick research I came up with solution, In this particular blog post I am going to share the spring boot plugin i.e. free marker, to send template based multi lingual email. So, first things first. Initiate a blank spring boot application with some of dependencies listed below: 1. web dependencies spring-boot-starter-web 2. jackson dependencies jackson-dataformat-xml 3. lombok dependencies lombok 4. mail dependencies spring-boot-starter-mail 5. free marker dependencies spring-boot-starter-freemarker Here is the effective pom.xml, you can also use gradle instead of maven.  pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...

Playing With Spring Boot Banner

Image
Hello geeks, here I came up with a quick read but interesting blog post. Here I am going to show you the different possible customization available in spring boot banner.                                     Have you noticed when ever you set up a brand new spring boot application, and runs it a pretty nice spring log with version information is populated into the console, just like the screen shot below. Now, here is the stuff you can perform with this logo. You can remove the entire logo, You can customize the text of logo You can customize the font, color and style of logo. You can use any image instead of text. Let's see all of above one by one. You can remove or turn off the default spring logo populating while running spring boot application by either using properties file or by programmatically. Removing Entire Logo using application.properties file spring.main.banner-mode="off" usi...