Yet Another Blog

「心を開いて」

Maven Introduction

TL;DR: Overview Maven began as an attempt to simplify the build processes in the Jakarta Turbine project. There were several projects, each with their own Ant build files, that were all slight...

JDBC introduction

What is JDBC? JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. Th...

Session Management in Java

What is a Session? HTTP protocol and Web Servers are stateless, what it means is that for web server every request is a new request to process and they can’t identify if it’s coming from client tha...

Session Listener in Java

Why Listener? We know that using ServletContext, we can create an attribute with application scope that all other servlets can access. But we can initialize ServletContext init parameters as Strin...

Java Servlet Introduction

Overview Servlet is Java EE server driven technology to create web applications in java. The javax.servlet and javax.servlet.http packages provide interfaces and classes for writing our own servlet...

Session Filter in Java

Why filter? If we want to make sure that a resource is accessible only when the user session is valid, we can achieve this using servlet session attributes. The approach is simple but if we have a ...

Java Web Application

TL;DR: Java Web Application is used to create dynamic websites. Java provides support for web application through Servlets and JSPs. We can create a website with static HTML pages but when we ...

Spring boot loader introduction

目的:允许嵌套jar。提供三种类启动器JarLauncher, WarLauncher, PropertiesLauncher 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 archive.jar | +-META-INF(1) | +-MANIFEST.MF +-org(2)Spring boot loader本身需要的类放置处 | +-spr...

MySQL user privilege management


Share file between virtual machine and host machine on virtualbox

TL;DR: Install Guest Additions, set shared folder and mount it. Install Guest Additions VirtualBox Guest Additions are software which enable seamless integration between the host and guest sys...