Category: Programming

programming

what is HSTS protocol?what is HSTS protocol?

HSTS, or HTTP Strict Transport security header(Strict-Transport-Security) is set on your domain, a browser will do all requests to your site over https from then onwards. In case when a hacker is redirecting this user to a fake domain.com, the browser remembers to use SSL because of the HSTS, so requests the secure site.

Browser needs to visit your site first to see this header, this will be active only after the first visit.

Why HSTS?

You can set SSL certificate on your domain, anyone can still use your site over http. The simplest solution is to add a redirect to your site and forces it over SSL. But user is open to attacks when the hackers directs the request to a site pretending to be non secured domain.

Build Spring Boot projectBuild Spring Boot project

Microservices are built with REST APIs, and the significant reason is that they help in building loosely coupled services. Spring Boot provides the flexibility to create REST APIs quickly, which are exposed as various services.

Spring Boot Framework is quite flexible while working with SQL database. You can use direct JDBC calls using JDBC templates, or you can go by implementing hibernate. One more significant option that Spring framework offers is by creating repositories for Spring Data implementation

Spring Boot provides an option of an embedded in-memory database. This has no persistent data storage. You can retain the data as long as the application is up and running.

Steps to build a simple Spring boot application:

  • Generate a quick Java project with Maven command.
  • Update pom.xml with the Spring web and other Spring boot dependencies.
  • Add SpringApplication.run() method to bootstrap Spring application.
  • Do a Maven clean build using mvn clean package command.
  • Execute command mvn spring-boot:run to run the application.

<dependency>
  <groupid>org.springframework.boot</groupid>
 <artifactid>spring-boot-starter-data-jpa</artifactid>
</dependency>

<dependency>
  <groupid>org.hsqldb</groupid>
  <artifactid>hsqldb</artifactid>
   <scope>runtime</scope>
</dependency>

Some Technical Question and Answers :

  • Which is the default logging file in springboot? spring.log
  • What is default HTML template engine in spring boot? Thymeleaf
  • What is the Annotation used to handle GET request? @GetMapping
  • What is the Annotation used for Rest controller? @RestController
  • What is the prefix used in HTML for Thymeleaf? th:
  • What is the Minimum Java version need for Spring boot? Java 8
  • Which of the following can be used for Dependency managment in spring boot? Maven & Gradle

Lets Learn Spring BootLets Learn Spring Boot

Spring Boot allows you to create operating, production-grade, stand-alone Spring based Applications with ease.

Spring Boot Framework Features:

  • is an opinionated framework.
  • is based on convention over configuration.
  • can build stand-alone applications.
  • can create a production-ready package.
  • has Embedded Tomcat server.

To summarize, Spring Boot Framework is a pre-configured, pre-sugared set of technologies/framework to minimize boilerplate configuration offering the quickest way to get a Spring web application ready and operational with minimal configuration/coding out-of-the-box.

Got Certified as Oracle Cloud Infrastructure Developer 2020 AssociateGot Certified as Oracle Cloud Infrastructure Developer 2020 Associate

After Lot of Hectic schedule with work and learning, Finally fixed the date and showcased my hard work to make it successful by passing the exam Oracle Cloud Infrastructure Developer 2020 Associate.

It is not a easy to score in OCI, It needs a lot of dedication and lots of practice to make it work.

Have made some routine to have daily two hours learning and practicing. some of the concepts and have browsed and analysis-ed the topic online.

There is lot of videos where it was very helpful to engage on. After writing the exam, Got the result on same day after 10 mins and finally got certified in OCI. In this Pandemic, Getting certified in Cloud will help you in the career.

ATG FrameWork ChangeATG FrameWork Change

Oracle Atg FrameWork

Oracle Atg FrameWork

Yes My Career Start With struts FrameWork. From last two Year my career changed to ATG FrameWork. The ATG FrameWork is Art Technology Group FrameWork. This the Oldest FrameWork in the web. It is used mainly for E-commerce Purpose.
It has all the end to end in-build features.

When i changed to ATG FrameWork. It required great deal of Training and learning, Since it was very vast in nature. I got so many help in getting the knowledge and finally got certified in Oracle Web Commerce 11.

It was a great Pleasure to achieve this stage.