03.Project Creation
Project Creation
This is the GitHub URL for sample project which is related to this part.
https://github.com/LahiruPriyankara/SpringBootAppOne.git
-----------------------------------------------------------------------------------
Java
– You need java8 or upper versions.
IDE
Spring tool suite (STS) – Similar to eclipse ide because it develop on
eclipse.
Intellij
idea – If use this you have to take commercial edition.
Community edition not provide spring boot.
To create spring boot project online, go to https://start.spring.io/
Spring
Boot වලදී එය default JSP වලට support නොකරන අතර
එය enable කර
ගත යුතුය.මේ
සදහා dependency එක
add කර ගත
යුතුය.මෙහිදී එම
dependency එක embed කර ඇති
tomcat version එකට
සමාන version එකකින්
ගැනීම වඩා සුදුසු
වේ.
Go to mvn repository and add tomcat jasper.
Creating
a spring boot project.
File
– new – spring starter project
Then,
H2
database is in memory database. It is not in outside. It is in application.
Database accessing URL :
http://localhost:8080/h2-console/login.jsp?jsessionid=8c5cb85923229ec20c82fb6a26834721
NOTE :
In spring boot Database hitting part is different.
---------------------------------------------------
As well as repository also can be convert to rest end point as fallows,
NOTE
: Rest response ලෙස default string
return කරන අතර අවශ්ය
නම් Jason ද return කරවා ගත හැක.නමුත් Rest එකෙන් xml return
කරවගන්න නම් xml dependencies අවශ්ය වෙනවා.it
is better to use version same as jakson
version.
-----------------------------------------------------------------------------------
Comments
Post a Comment