2018年10月10日水曜日
JPA Sample in Spring
It is efficient to use JPA when retrieving data from the DB. You can return on time.Create a POJO (Entity) mapping columns you want to use from the DB.
Create a Repojitory that pulls Entity.
Autowired Repojitory with Controller. With this you can retrieve DB data with Controller.
This is the only basics.
When using ORACLE, write the following in apprication.properties of Spring Boot. (Do not forget the description of pom.xml!)
It will be more convenient to apply. It's also next time.
登録:
コメント
(
Atom
)