Posts

Showing posts from 2021

How to Abort Javascript Execution

 In General we may have to work on Javascript abort where in we can abort using below steps . 1. by throwing error on browser console which will abnormally terminate the JS flow . function abortFlow(){  throw new Error ( "Oops because of error aborting the flow" ); } 

HTML Side menu

 <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Product sheet </title>  <script src="http://code.jquery.com/jquery-1.9.1.js"></script> </head> <body> <div class="header">      <h1>Product sheet </h1> </div> <div class="nav">     <ul>         <li><a href="#section-london">Product</a></li>         <li><a href="#section-paris">click 2 </a></li>          <li><a href="#section-london1">Click 3</a></li>         <li><a href="#section-paris1">click 4 </a></li>     </ul> </div> <div id="section-london" class="tab-content"> <h2>Product Details</h2> <p>This will show you the product details.</p> </div> <div id="section-paris&

Java Interview Questions and answer for experience

Image
  Spring Boot Questions :-  Disable Tomcat server FromSpringStarter we can add @SpringBootApplication(exclude = {EmbeddedServletContainerAutoConfiguration.class, WebMvcAutoConfiguration.class}) annotation to remove embedded tomcat server   Or execlude tomcat starter web from pom.xml   <exclusions>         <exclusion>             <groupId>org.springframework.boot</groupId>             <artifactId>spring-boot-starter-tomcat</artifactId>         </exclusion>     </exclusions> How to Change Tomcat port:- server.port=8081 How to Disable web server dependencies spring.main.web-application-type=none How to disable AutoConfigure class :- @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class}) What does @SpringBootApplication do :-   @ SpringBootApplication annotation can be used to enable those three features, that is:   @ EnableAutoConfiguration : enable Spring Boot’s auto-configuration mechanism @ Com