Intellij Spring Boot JSP Page not found or too many redirects

Intellij IDEA - the leading Java IDE This is a bug in IntelliJ version 2021.3 probably gonna be fixed in the future release version of IntelliJ. So, if you have a similar problem, maybe this can fix it. The error usually shows up as page Not found or too many redirects, when you run spring boot code with JSP template using the Intellij run icon. Here’s a simple quick fix to solve it: - Go to the run Edit configuration - Select Modify option - Select a Working directory - And put this variable: $MODULE_DIR$   - Then run once again It is not something wrong with your code, JSP codes, if you debug it you will see that everything just works. Even if you are using the spring-boot maven plugin, like doing mvn spring-boot:run the program just works fine. Sometimes we need to debug our project using the IntelliJ debugging feature, which is impossible to do by just using the maven spring-boot plugin. So we need to run the program using the IDE. I hope this can fix and solve your

Commands To Remove Folder Using Windows Powershell

Accidently removes an important document If you are a Unix person trying to operate Windows, you probably gonna typed RM -RF SOME-FOLDER in Powershell and expect it to remove a folder. But unfortunately, it won’t work on windows, even In the older versions of the windows terminal system. To delete a directory you’ll have to use rmdir /s /q the-folder-name.  But again it won't work anymore on Windows PowerShell. You have to learn lots of power shell commands.  Solutions To remove some folders on your computer using windows PowerShell, execute this command line below: remove-item -recurse -force THE_FOLDER_NAME The recurse is equivalent to “-r” in Linux. It forces the commands to remove the nested folder. And the -force is similar to ‘-f’ in Linux. To force delete the file if some other program is holding it. Those commands also can be applied to remove files. But without -recurse and -force options. That command is similar to the Unix rm -rf folder.  And in the older Windows command

Become An Efficient Programmer

Work Efficiently - Photo by Alexandr Podvalny on Unsplash As all of the industry around the world digitizes their businesses, there’s a huge demand for more software developers. A very labor-intensive job that requires focus, sitting for hours and staring at the LCD screens, sometimes overlaps with the weekends, not that it’s wanted but because the task requires an excessive amount of time. Promises of a good salary and stable career path, people rush trying to school themselves and even their children to enter the Tech world, which is still not too late yet may be on the brink of decline, as AI now can perform to write their own codes, and Developers are in danger of being replaced. I remembered not so long ago, about 8 years ago, my first professional job as a software coder began. Not a pleasant year being very junior, in any industry. I had to have a big brave face to not only face very mad clients but also my coworkers and myself, my inner thoughts telling me that I should've

How to Permanently Disable Windows Defender Home Edition

Windows Defender Task Manager Unlike the pro version, the Windows Home edition doesn’t have a group policy editor (gpedit) preinstalled. So it’s a bit tricky to disable the antimalware service executable permanently. Follow these steps to disable Windows defender antivirus on Windows home. 1. Open Windows Security > Virus and Threat Protection > Turn off real-time protection 2. Turn off all the available options like Tamper Protection  3. Download the gpedit-enabler.bat here [ ] 4. Right-click on the file and Run as an administrator 5. After it’s finished installing, use Windows Key + R 6. When the dialog opens, type gpedit.msc and press enter 7. Navigate to : Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus 8. Navigate to Turn off Windows Defender Antivirus policy, double click on it 9. Then, Turn off windows defender antivirus, select Enabled 10. Click

Get started Oracle DB Express for development

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 : 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

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 , 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

Spring Kafka - how to use ReplyingKafkaTemplate send and reply synchronously

Microservice Spring with Apache Kafka Kafka is an asynchronous messaging queuing system, but when you have a case in your project that you need to have the result immediately from another service you can do that quite easily. Kafka from the client side produces a message to the server side, then waiting for the server to return back the message exactly what the client wants. It’s identified in the kafka header request named KafkaHeaders.CORRELATION_ID and a topic where the server should send. If the server side produces the same correlation id to the same topic in the request, then the client side will catch that message as its reply. Although you can work with kafka from a different framework and language other than Java and Spring. Here’s in this example i just specifically giving the example of sending and replying kafka messages using Spring Boot. The Project Overview The client-project will send a string message to the server-project over kafka, then the server-project wil

Start small! You don’t have to solve world most difficult problem

Start up meeting - Image by StartupStockPhotos from Pixabay You don’t have to create new business or solve the world's most difficult problem. You can just start a small doable business by following other businesses that already exist, as long as you have better product, packaging and marketing. People are too ambitious and think too far, it’s okay if you are Elon Musk, but if you just some random guy creating your own business, although it is possible to compete in space race, its chance is very slow compared to already exist doable business that you can just start So, start small, don’t overthink things. Only when your capital is significantly larger, only then you can start to think about expanding your business. Most businesses will fail before 1 year, so be careful, you have to manage your resources carefully. I read the book Atomic Habits, which can be summarized the following: Atomic Habits by James clear is a definitive guide for breaking bad behaviors, showing you how sma

5 Advices About Writing A Tech Blog For Beginner

Blogger with laptop - Image by Peter Olexa from Pixabay Today’s is not going to be a technical tutorial about how to do stuff in some programming language or fixing some bug in some programming technique. It’s just my overall view about blogging without any preparation or research, it’s purely written straight from the document editor. As I am now a self-proclaimed tech blogger, because I feel I have written enough articles to have myself categorized as a blogger. I will be giving some advice about writing a tech blog, but this is for beginners. So, if you are not a beginner, maybe this is not the right article for you. Consistency Writing a blog is not easy, in fact it is very hard that every beginner will leave their blog untouched after a few tries writing less than 20 posts. For me the hardest part of writing a tech blog, or any other niche blog is the consistency, because we don’t always have perfect time, or perfect mood to develop a written article. To be consistent writing on

Better Understanding of ACID Principle In SQL Database

ACID principle in SQL database ACID  is a set of principles whose acronym is Atomicity, Consistency, isolation and durability. As any other principle, it’s done by the developer or database admin or available feature on the database system of choice (MySQL, Postgres, SQL server). So as a developer or data admin you must know this principle in order to design and develop a database system for your project. Dealing with database transactions that have many queries in it should be handled following the ACID principle. When a set of queries are executed ACID prevents disaster in your data because something that is partially error in the middle of transaction can lead into data inconsistency. Because the app query expects all the query should be completed with no interruption, sometimes your database depends on other data. So here’s what ACID principles acronym are: Atomicity All queries in a transaction are treated as a single thing, if one query fails, the whole thing shouldn’t change any

Popular posts from this blog

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

Flutter Button With Left Align Text and Icon

How To Create Spring Boot Project Using Netbeans

ASUS Battery Health Charging Software To Make Your Battery Life Longer

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