Posts

Showing posts with the label Spring Boot Examples

Spring boot video streaming example-HTML5

Image
Hello everyone, Today we will learn how to stream MP4 video using Spring Boot and Spring Web Flux.  The Source code download link is provided at the end of this post. New, Quarkus Practice User Interface   Project Structure: G radle(build.gradle) plugins { id 'org.springframework.boot' version '2.5.4' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } group = 'com.knf.demo' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11' repositories { mavenCentral() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-webflux' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'io.projectreactor:reactor-test' } test { useJUnitPlatform() } Service (VideoStreamingService.java) package  com.knf.demo.service ; import org.springframework.beans.factory.annotation. Autowired ; import org.springframew

Spring Boot file upload/download example

Image
Hello everyone, today we will learn how to upload files/download files in the Spring Boot web application. You can download the source code from our GitHub repository. Related topics , Spring Boot Export Data to CSV Example - OpenCSV Spring Boot + Apache Commons Export Data to CSV Example Spring Boot Export data to PDF example Technologies used: Spring Boot 2.5.5 Spring MVC 5.3.10  Maven 3 JDK 11 jQuery Bootstrap Thymeleaf 2.5.5 Ajax User Interface Project Structure :   Pom.xml: POM stands for project object model. It's the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used to build the project. It downloads required libraries easily using POM XML tags. <? xml version ="1.0" encoding ="UTF-8" ?> < project xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance" xmlns ="http://maven.apache.org/POM/4.0.0" xsi :schemaLocation ="