CST 438 - Week 1
This week I got to work with the Java Spring Boot Framework for the first lab of this class. This lab covered building a RESTful API to update customer and order information, which included using HTTP methods like GET, POST, PUT, and DELETE. By creating API endpoints, Customer/Order data received from the client through data transfer objects could be passed to the database through repositories. This application also covered authentication using tokens that were generated during the login process. User authentication in this lab ensures that users can only alter data pertaining to their own account.
While I thought this lab was helpful for learning how to use the Spring framework, I still want to develop a better understanding of how the framework works internally. One concept I was interested in was how the repositories were implemented without explicitly creating classes that implemented them. In my research, I found at runtime, Spring generates proxy classes that implement the repository interfaces and it is able to parse custom method names to generate SQL queries. Overall the auto-configuration in Spring Boot handles a lot of the application set-up and moving forward in this class, I will continue to research the frameworks being used in this class as much as possible.
Comments
Post a Comment