-
Core Java
Handling Injection Attacks in Java
An injection attack is the insertion of malicious data from the client to the application using SQL or XXE (XML…
Read More » -
Core Java
Handling Cross-Site Scripting (XSS) in Java
Cross-site scripting (XSS) is a type of security vulnerability in web applications where an attacker injects malicious scripts through some…
Read More » -
Enterprise Java
Testing with Mockito
1) Register MockitoExtension @ExtendWith(MockitoExtension.class) class ObjectTest { static final Long ID = 1L; 2) Create the mock @Mock private ObjectRepo…
Read More » -
Enterprise Java
Spring Injection Types
Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private FirstBean firstBean; @Autowired…
Read More » -
Enterprise Java
Jenkins: Automating your delivery pipeline
In this post, we are going to create a Jenkins pipeline for a Java Spring project using Maven and Git:…
Read More » -
Enterprise Java
Spring Security
There are many authentication mechanisms (basic, digest, form, X.509, etc), and there are many storage options for credentials and authority…
Read More » -
Enterprise Java
Spring MVC REST
Representational state transfer (REST) is an architectural style that describes best practices to expose web services over HTTP, emphasizing performance,…
Read More » -
Enterprise Java
Spring Boot for war
Spring Boot supports the following embedded servlet containers: Tomcat Jetty Undertow You can use Maven, Gradle, or Ant/Ivy as build…
Read More » -
Enterprise Java
Spring Web MVC
Spring MVC is a web framework based on the model–view–controller pattern. It is based on the Spring principles and supports…
Read More »
- 1
- 2