Angular 9 File upload + Spring Boot REST API

In Angular Component Construct the formData with all the required fields including your file and the different inputs you need to pass along with your file. on file upload assigning the uploaded to files to networkFile variable, the same only sent to the backend in the formData In Angular Service In Spring Boot Rest API Controller  317 total views,  9 views today

 317 total views,  9 views today

» Read more

How to Implement JWT Token Based Authentication in Spring Boot Microservices

JWT (JSON Web Token) tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties. It is highly recommended and used authentication method for REST API & Webservices. Today we are going to see how to implement JWT token based authentication in spring boot microservices to securely communicate and transfer the data’s between the client(any client […]

 1,369 total views

» Read more

Creating a SOAP web service with Spring Boot

Creating a SOAP web service with Spring Boot

Creating a SOAP web service with Spring Boot Main Application Spring Boot File: package com.ngdeveloper; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class CouponApplication { public static void main(String[] args) { SpringApplication.run(CouponApplication.class, args); } } pom.xml file: This below pom.xml file contains the plugin to generate the output directory files from the xsd file, so create the pom.xml, xsd file, endpoints […]

 1,590 total views

» Read more

2 ways to refer classpath resource in spring boot projects

2 ways to refer classpath resource in spring boot projects   Using ClasspathResource import org.springframework.core.io.ClassPathResource; @Bean public XsdSchema mySchema() { return new SimpleXsdSchema(new ClassPathResource("myfile.xsd")); }   Note: Here myfile.xsd should be located in src/main/resources. Using Resource import org.springframework.core.io.Resource; @Value("classpath:myfile.xsd") private Resource res; @Bean public XsdSchema mySchema() { return new SimpleXsdSchema(res); }  1,413 total views

 1,413 total views

» Read more

Spring Boot Tutorials

Spring Boot Tutorials: 1. Spring Boot – Is it a Brand New Framework ? Spring boot is not a brand new framework, just like mvc/web/rest/jpa add-ons, it’s just a additional kit from spring to reduce the development headaches with spring framework. 2. How to configure spring boot in Maven ? Spring boot provides single dependency entry for pom.xml configuration, <parent> […]

 2,331 total views

» Read more

Scheduler in Spring Boot with 3 Simple Steps Example

Scheduler in Spring Boot with 3 Simple Steps Example:Scheduler in spring boot became very simple and any one create a Cron job or scheduler in spring boot with just 3 steps. Step 1: Enable spring boot for schedules Add @EnableScheduling to your spring boot main class. @SpringBootApplication @EnableScheduling public class SpringBootStarter{ public static void main(String[] args) { SpringApplication.run(SpringBootStarter.class, args); } } […]

 1,204 total views

» Read more