How to implement Security in Spring Boot Project? Spring Boot java Spring Spring Boot 3 by devs5003 - February 19, 2023March 15, 20245 Now a days, almost every client demands for implementation of powerful security feature in real time application. Demand of security feature is very valid to maintain confidentiality, integrity and availability. There are many types of security in the real world, but we as a developer will focus on the Application/Software Security. Furthermore, in Application Security, our job is to ensure basically two things. First, only valid user can access the application. Second, If the user is valid, he/she can access only permitted data/information in that application. I consider, there is nothing to explain more about them as you must already be aware of these two terminologies i.e. Authentication & Authorization. You might already have guessed what we will discuss in our
How to handle Exceptions/Errors in Spring Boot? Spring Boot java Spring by shwetas8536 - January 24, 2023January 15, 20243 Every one of us spend ample amount of time in learning big topics of Spring & Spring Boot. For example, Spring Boot REST, Spring Boot MVC, Spring Boot Security and many more, but generally we don't think about 'How to handle Exceptions/Errors in Spring Boot?'. This topic might become the most important for running the application without any interference. Also, it is very helpful in making other developers understand our code flow easily. Even finding out the origin of errors & exceptions becomes very irritating, if we have not handled them properly in our code. Sometimes, we need to debug the whole flow of code to find it out & resolve accordingly. In this way, Exception handling plays an important role
Spring Scheduling Cron Expression java Scheduling Spring Spring Boot by devs5003 - January 16, 2023February 16, 20240 When we have a requirement where we need to run a task/job repeatedly after a particular time interval, we achieve this functionality by implementing Scheduling. For Java developers, Spring Framework makes it simple by offering Spring Scheduler. Moreover, Cron Expressions are the most widely used approach to achieve scheduling. Cron Expressions are very popular in Unix/Linux OS for scheduling. Spring framework also incorporates the same concept internally. Spring Framework offers us an API where we can utilize Cron expression to get the task scheduled. This article about 'Spring Scheduling Cron Expression' includes all the new improvements in Cron Expressions in Spring 5.3. However, there are some other approaches to get our task scheduled using Spring/Spring Boot, but here in this article
What is Bean in Spring java Spring Spring Boot Spring Core by devs5003 - January 10, 2023March 9, 20240 Every Java Developer come across the terms Java Bean, Bean Class & Spring Bean. Most of the times people think that all are the same and used interchangeably. Even sometimes people consider them as a simple POJO class. In fact, these all have some logical differences. There are some set of standards & guidelines provided by Programmers that make them different from each other. In this article 'What is Bean in Spring?', we will start with the fundamentals which are also essential to know, then we will discuss the Spring Bean with examples. Please note that if you define a class that doesn't follow the guidelines of being a Spring Bean, the Java compiler will never complain you. In contrast, the
New Features In Spring Framework 6 java Spring Spring Boot Spring Boot 3 Spring Core by devs5003 - December 31, 2022October 11, 20230 Spring Framework 6, released on November 2022, is the major version change and containing many upgraded features and changes into the Spring development environment. On the other hand, Spring Boot 3 also released on November 2022, is based on Spring Framework 6, also changes a lot of things. We need to know about the changes in new versions in order to make smooth development of an application in the future. In this article, we will discuss about ‘New Features in Spring Framework 6’. Spring Boot 3.0 is also the first Spring Boot GA release, which is based on the Spring Framework 6.0. As a developer, we need to be aware of these updates in order to work smoothly with Spring Framework.
How to write REST Consumer API using Spring Boot RestTemplate java RestTemplate Spring Spring Boot by devs5003 - December 30, 2022March 11, 20240 Apart from three well known layers i.e. Presentation Layer, Service Layer and Data Layer, we may also have an Integration Layer. This layer generally works with the web services concept and connects two different applications to exchange data between them. One application refers to producer/provider, whereas other refers to consumers. However, we have already gone through the REST Producer API in another article where we had developed different operations to produce REST API. Now, we must have a question in mind 'How to write REST Consumer API using Spring Boot RestTemplate'. We had also discussed a bit about RestTemplate( The Spring REST Client). In fact, RestTemplate provides us Consumer methods to consume services provided by producer applications. We can even have
Spring Security LDAP Authentication Example java Security Spring Spring Boot by devs5003 - November 30, 2022February 20, 20240 If you have ever implemented login feature in a production grade application, you must have heard about the LDAP authentication. LDAP can be used in any type of the hierarchical directory information. The most popular use of LDAP is to store an organizational data. A typical organization generally has directors, managers, supervisors and other positions. In other words, these are the hierarchical data where LDAP mechanism is perfect to implement. In this way, most of the organizations use it to maintain the organizational information including their credentials. We will discuss Spring Security LDAP Authentication Example in this article. In Spring based applications, LDAP is used to integrate with LDAP directories and perform various directory-related operations, such as user authentication and authorization.
How To Deploy Spring Boot Application To Heroku Heroku java Spring Spring Boot Spring Cloud by devs5003 - September 28, 2022November 12, 20232 The development of a software application goes through multiple stages like: requirement analysis, designing, coding, testing. Once testing is completed successfully, we need to deploy the application somewhere in a server so that users can access it from anywhere. Generally, we deploy the application in the Cloud environment. Heroku is the cloud environment that provides us deployable infrastructure. So, we are going to discuss 'How To Deploy Spring Boot Application to Heroku'? in this article. Spring Boot’s flexible packaging options provide a great deal of choice when it comes to deploying your application. We can deploy Spring Boot applications to a variety of cloud platforms, to virtual/real machines, or make them fully executable for Unix systems. Here in this article we
Spring Bean Life Cycle Method Examples java Spring Spring Boot Spring Core by devs5003 - September 13, 2022March 20, 20240 In the context of Spring Framework, if we want to execute some code after the bean construction, then we can write that code inside the custom init() method. Similarly, if we want to execute some code just before the destruction of the bean, we can write that code inside destroy() method. These methods are called Spring Bean Life Cycle Methods. Here in this article we will develop 'Spring Bean Life Cycle Method Examples'. The bean life cycle is managed by the spring container. When we run the program, first of all, the spring container gets started. After that, the container creates the instance of a bean as per the request, and then the required dependencies are injected. At the end, the bean
Spring Core Tutorials java Spring Spring Boot Spring Core by devs5003 - September 7, 2022December 19, 20230 Once we start learning Spring Framework, we hear a term 'Spring Core'. Spring Core is nothing but an important and must know module of the Spring Framework. Without a deep learning of the Spring Core module, a developer shouldn't think of working on Spring Framework confidently. This article on 'Spring Core Tutorials' contains the must know artifacts for each developer who is going to work on Spring Framework based application. Let's discuss out topic 'Spring Core Tutorials' and related concepts in detail. Spring Core Tutorials The Spring Core tutorials typically cover essential concepts and features of the Spring Framework, which plays an important role as the foundation for various other Spring projects and extensions. Here are some of the the key topics that