Showing posts with label SpringBoot. Show all posts
Showing posts with label SpringBoot. Show all posts

June 11, 2024

Replace H2 with a real database in spring boot application

Springboot application facing bellow error or need to implement real test data base:Senario:Could not prepare statement [Table “XXXX” not found (this database is empty); SQL statementSolution:Add bellow configuration in test application.ymlspring: test: database: replace: none---Code:@DataJpaTest @TestPropertySource(properties = { ...
Read more ...

August 01, 2021

Spring Boot question and explanations

 Question: What is diff BeanFactory and ApplicationContextFactory?Solution:The Spring Framework comes with two IOC containers – BeanFactory and ApplicationContext. The BeanFactory(Lazy Loading is the most basic version of IOC containers, and the ApplicationContext ( Eager Loading) extends...
Read more ...

July 31, 2021

AWS S3 CURD Operations using spring boot

AWS S3 CURD Operations including spring boot actuator featuresREADME file mentioned to run procedureGITURL: https://github.com/ramanujadasu/aws-curd-apisGIT SSH link:git@github.com:ramanujadasu/aws-curd-apis.gitSpring Boot AWS Cloud Supporthttps://spring.io/projects/spring-cloud-aws#overview Samples:https://github.com/spring-cloud-sampleshttps://github.com/ramanujadasu/aws-ref...
Read more ...

July 27, 2021

Spring boot concepts and unit testing with mockito

Its very useful material spring boot concepts and unit testing with mockito:https://drive.google.com/drive/folders/1V0L6ECAdvVXamlutHVnEc4MCIqdQPA3F?usp=sharing Docker images:https://hub.docker.com/search?q=in28min&type=im...
Read more ...

November 23, 2018

How to encrypt values in application properties in spring boot application (using Jasypt)

Jasypt (Java Simplified Encryption) Spring Boot provides utilities for encrypting property sources in Boot applications. In this article, we’ll discuss how we can add jasypt-spring-boot‘s support and use it. For more information on using Jasypt as a framework for encryption, take a look at our Introduction to Jasypt here. Why Jasypt? Whenever...
Read more ...

November 08, 2018

Fail to initialize due to unknown Zone Id while running springboot application

Fail to initialize due to unknown Zone Id while running springboot application: > Errors while running application: - Application startup failed java.time.zone.ZoneRulesException: Unknown time-zone ID: America/Fort_Nelson - Caused by: java.time.zone.ZoneRulesException: Unknown time-zone ID: America/Fort_Nelson at java.time.zone.ZoneRulesProvider.getProvider(ZoneRulesProvider.java:272) at java.time.zone.ZoneRulesProvider.getRules(ZoneRulesProvider.java:227) at...
Read more ...

March 28, 2018

Upload a file in cloud space(multipart upload operation) using HttpClient

To use below program, to upload a file easily in could space. we will illustrate how to do a multipart upload operation using HttpClient. import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringReader; import java.io.StringWriter; import...
Read more ...

My Favorite Site's List

#update below script more than 500 posts