|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/restfull-api-web-services-with-spring-boot-and-vue-js-vuex-router/
课程评论:没有评论
本课程将教授如何使用 Spring Boot、Vue.js 和 Vuex 构建一个完整的 RESTful API Web 服务。 **项目概述:** 我们将创建一个新的项目,并利用 Spring Boot、Vue.js 和 MySQL 来实现它。项目将重点关注 CRUD(创建、读取、更新、删除)操作。Vue.js 将负责发送 API 请求,而 Spring Boot 将处理这些请求。 **核心功能:** * **用户操作:** * 用户登录 * 用户注册 * 用户个人资料 * 用户列表 * **角色管理:** 实现基于角色的访问控制,确保安全性。 * **安全性:** 在 Vue.js 和 Spring Boot 两端都将实现安全措施。 **技术栈与实现细节:** **后端 (Spring Boot):** * **架构:** 采用 Model-View-Controller (MVC) 模式。 * **Model:** 定义实体类。 * **Repository:** 使用 JPA Repository 和 Crud Repository 处理数据库操作(save, update, find, delete),并利用 Hibernate 进行对象关系映射 (ORM)。 * **Service:** 调用 Repository 层。 * **Controller:** 使用 Spring Rest Controller 提供 API 接口,处理客户端请求。 * **数据库:** MySQL。 * **辅助库:** * **Lombok:** 利用 `@Data` 或 `@Value` 注解简化实体类的 getter、setter、equals 和 hashCode 方法的编写。 * **Gradle:** 管理后端项目的依赖。 **前端 (Vue.js + Vuex):** * **框架:** Vue.js (运行在 Node.js 环境)。 * **数据交互:** 通过 HTTP 请求消费后端 API 数据。 * **Service Classes:** 创建服务类来处理与后端 API 的通信。 * **组件拆分:** * **用户操作界面:** 实现登录、注册和个人资料页面。 * **管理员操作界面:** * 列出所有用户。 * 显示用户详细信息。 * 实现管理员的认证和授权。 **总而言之,本课程将引导您从零开始,构建一个安全、功能完善的 Web 服务,涵盖全栈开发的关键技术和实践。**
We will create a new project in this course.And we will implement this project with using Spring Boot, Vue, and MYSQL.In our project, we will implement CRUD operations. And these CRUD operations will be requested from Vue.Then This requests will be handled from Spring Boot.Our project goes on User operations. Our main operations will be user login, register, profile and user list.Also, we will go on with role based application.And this all things will be provided with secure way in both Vue and Spring Boot side.We will have two main components to implement our project.These are server side and client side.In Server Side:Spring Boot will be main thing.Model View Controller structure will be implemented with using Spring Boot.Our MVC structure will work like that:First of all, the entity classes will be created under model package.Later, if model class is permanent, we will create a repository for it.Then we will call repository from services.Finally, we will call services from from controllers. In Spring Boot, Data will be presented to client as API call so Spring Rest Controller will be used to handle it.We will use MySQL as Database.We will also use Object Relational Mapping with Java Persistence API and Hibernate.You know, We can map our database tables to objects with hibernate.We will use JPA Repository and Crud Repository in Spring Boot. So these repository templates will handle common database operations like save, update, find, delete.With Spring Boot, we will also use Lombok library to clear code.You know that we don't want to implement getter, setter, equals and hash code. So we can escape it using Lombok @Data or @Value annotation.We will use Gradle To handle all dependencies on server side.That's all about Server side.Let's talk about Client Side.Vue will be the main client controller.Vue works on nodeJS.In vuejs, we will consume server side data with api calls.To do it, we will create service classes.In service: We can connect to server side and we can send requests or we can get responses from server side with http.Then, we will call service data from components and we will render them.Our User interface panel is contructed from admin operations and user operations.In user operations:, we will implement login, register and profile pages for users.In admin operations:,We will list all users and we will display the detail of users.And of course, we will implement authentication and authorization for admin operations.