-
Notifications
You must be signed in to change notification settings - Fork 1
/
Daily Notes.txt
151 lines (84 loc) · 2.88 KB
/
Daily Notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Layered Architecture:
======================
DB<-->Repo/dao layer<--->Service Layer<--->controller layer/UI
Spring Core:
============
light weight ,non-invasive,loosley coupled
FrameWorks
invasive :framework which will force to the programmer to implement predefined api
Ex:struts
non invasive :framework which will never force to the programmer to implement predefined api
Ex:spring,hibernate
Servlet : web applications
11
class LoginController extends HttpServlet/GenericServlet/Servlet
{
}
11*100=1100 heavy weight
EJB -->heavy weight component
light weight component
rod johnson -->2003 -->interface 21 ->spring 1.x
spring 5.x
spring
core,jdbc,orm,security.....
spring core:/IOC/dependency injection module
============
setter injection <property>
constructor injection <constructor-arg>
autowiring
Configurations
XML
Annotation
java
maven
spring core
spring context
loosley coupled -->container --> Beanfactory,ApplicationContext
Spring has given annotations for userdefined classes configuration like @component/@Service/@Repository...
but not for predefined classes like datasource,transaction....xml/java config
<bean id= class= autowire scope>
<property name value
<constructor-arg ref......
@Configuration
class SpringConfig
{
@Bean
public Employee getEmployee()
{
return new Employee();
}
}
JPA: bean/entity table row -->ORM-->hibernate,eclipse link,top link,ibatis ...
----
jpa jars,hibernate jars,mysql
class-->table
obj-->table row
variables-->table columns
Employee JAVAX.Persistence.*
EntityManagerFactory factory=Persistence.getEntityManagerFactory("unitname");
EntityManager -->factory.getEntityManager(); methods persist,merge,remove,find,createQuery....
persistence.xml
Spring Boot: spring 4.x
production ready applications
configuration
server
dependencies
Spring boot
1)Auto configuration :most of the commonly used classes already configured by the springboot
2)embeded server/internal tomcat
3)starters 2 starters dependencies
4)Actuators URL --insite/internals
STS
Rest API
s--->SOA
Interoperable
webservices is a technology which is used to communicate/share info between applications
sbi ATM card --->icici atm machine ---> sbi app server
AC,S,ES,A JSON/XML
SpringBootjpahibernaterestapi <==========> POSTMAN
empolyeecrud
1.x tomcat
2.x hikari
c3po
combopooled
.....