Running 3419
Running 3419
======
Spring Core and MVC
SQl and rest knowledge
Maven knowledge
https://github.com/srinivaskolaparthi/SpringBootSriniUpdated
https://github.com/kolaparthisrini/MicroservicesSrini
\\ndafile\Softwares\JEE\ELTP====Softwares
https://github.com/srinivaskolaparthi/Certifications
Spring:components,service....etc
n no of annotations.
JvisualVM.
https://docs.spring.io/spring-boot/docs/current/api/
Boot= Spring+Automation
spring boot---solu
----------------------------------
Maven:
==========
why maven?
1)Build tool
2)Dependency management
3)packaging
4)Profiling the app
5)Scaffolding
6)deployments
7)plugin support
8)Repository maintainance(using maven
we can create corporate repositories)
9)multi module project support.
Disadvantage:?
==============
xml based
Transtive dependecny management issues---****
Transtive dependecny?
------------------------------------
8089,1521
Tomcat,jetty
Webspher/weblogic---commercial
no straight forward approach.thru workarounds.
@SpringBootApplication:
------------------------
@configuration===>java based config
@componentscan===>scan your entire code base with the specified packagename for
beans.
@enableautoconfiguration===>registers/identifys the beans based on the beans
configured in classpath
or pom.
SpringBootMVC:
POM.xml--->bootwebstarter
boottomcatstarter
?
Interceptor/Filter
Filterchain,chain of responsibilty remains
1)USing Springboot filters
2)Add servletSpec filters.
SpringMVC app:
web.xml---dispatcher servelet and listener
and loadonstartup.
SpringApplication.run():?
-----------
1)BootStrapping--Load all necessary components.
2)Application Context is created
public ConfigurableApplicationContext run(String... args) {
// Create, load, refresh, and run the ApplicationContext
context = createApplicationContext();
return context ; // handle to the context object for the developer
}
3)The createApplicationContext method checks if it is a web or standalone
application based on the type it creates for the context.
IF the app is web then AnnotationConfigEmbeddedWebApplicationContext will be
initialized.
else AnnotationConfigApplicationContext will be initialized.
4)Once initialized, All your @Repository, @Component, @Service, and @Controller
beans will be
registered and the context is returned.
Whitelabel:
-----------
whenever we run any web application,by default server expects a welcome file named
as
index.html.
Resolve:
disable whitelable in ur project
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
/META-INF/maven
/META-INF/resources
/resources
/static
/public
/templates
If you want to disable auto-reload in browser for files in few of these paths, then
use spring.devtools.restart.exclude property. e.g.
spring.devtools.restart.exclude=static/**,public/**
spring.devtools.restart.additional-paths=script/**
Similarily, If you want to keep those defaults and add additional exclusions, use
the spring.devtools.restart.additional-exclude property instead.
spring.devtools.restart.additional-exclude=styles/**