Posts

Showing posts from September, 2021

Get started Oracle DB Express for development

Image
Oracle database is a Relational database developed by Oracle, Oracle DB provides high performance with failure recovery features, easy to manage the database, and has a good reputation for supporting Enterprise level applications. For you database admin or software developer that are newly using Oracle database, you can follow this simple get started guide. Follow each one of the instructions from installation to launch and create a new database table. Download and install Oracle DB Download the oracle database express edition from the following link : https://www.oracle.com/database/technologies/xe-downloads.html When the installation process is running, then you should set the default password that you will use for login. Login using SqlPlus Open terminal or command prompt and type "sqlplus”. Then enter the username SYSTEM and password you choose on the installation step earlier. Create new user Before the SYSTEM user can create new user, you have to execute this command: alter

Upload and Download Rest API using Spring Boot Reactive WebFlux

Image
Reactive Spring Logo This is maybe a very simple task, but for those of you that may not be familiar with WebFlux found it difficult to create a Rest API that handles upload and download in Reactive spring application. Create the skeleton Spring project Create a new project, go to start.spring.io , on the dependencies section, add Spring Reactive Web. Generate and extract it into your desired project location. Instead of using spring-boot-starter-web, use spring-boot-starter-webflux instead in your pom.xml. Here’s the pom.xml for our Reactive Rest API project. Create our Rest controller Now that you have set to use WebFlux instead of the usual web, we have to change a little bit in the Controller class that handles the API endpoints. It doesn’t change much but you have to wrap the Response in Mono and the request parameter to FilePart. So our upload and download file controller will look like this. Create utility to handle file upload We need to structure our project better, so we cr

Popular posts from this blog

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

How To Create Spring Boot Project Using Netbeans

How To Connect SSH Using PEM Certificate On Windows

How To Use React Ckeditor Upload File Image With Demo and Example Codes

Flutter Button With Left Align Text and Icon