Tuesday, 3 July 2018

SpringBoot Points

Spring Boot

---------------------
Spring tool Kit IDE built on top of eclipse but has additional features than eclipse for spring development perspective..
It has its own builtin server so no need to configure tomcat etc...
---------------------
creating new project u can also go to start.spring.io then we can run our applicaton by right/click - > run on spring boot server etc...

---------------------
Spring Data JPA -- h2 builtin database and code also lots reduced JPQL language for sql queries
class AAA extends CrudReository {

@Query("from Alien where tech = ?1 order by aname")
List findByTech(String tech);
}
---------------------
In SpringBoot no need of controller also and we can use below annotation in class which extends JpaRepository
@RepositoryRestResource(collectionResourceRel="aliens",path="alien"

No comments: