You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
project/代码/demo1/VX/README.md

28 lines
1.6 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 慕课网,微信小程序开发入门练习
- 根据[https://github.com/bjchen2/WxProgram](https://github.com/bjchen2/WxProgram)
的基本代码进行修改利用mybatisplus框架替换原来的mybatis并解决了其删除操作不能用DELETE请求的小问题
- 微信前端代码在a1文件夹下
- 慕课网微信小程序开发源码大体写法和视频一样部分地方以个人理解做了适当更改尽可能的使用springboot特性简化代码除去datasource和sessionFactory类、mybatis.xml的构造直接在SpringBoot中配置;修改controller访问地址和访问方式尽可能符合restful规范
- 参考资料:
https://www.imooc.com/learn/945
- csdn [https://blog.csdn.net/m0_67290880/article/details/123770899](https://blog.csdn.net/m0_67290880/article/details/123770899)
### 环境
- JDKJDK1.8
- mysql8.0
- 使用lombok包springboot的很多特性虽然知道没有视频讲解对新手很不友好,但能减少代码冗余量,学到更多。(其实是本人太懒,这些工具太好用)建议大家都能了解一下。
添加响应结果集工具类util包下的FormatResponseUtil类用于controller返回结果
- 为降低代码冗余所有get/set方法均用lombok包的Data注解具体使用方法可自行百度
若不愿使用lombok包可将源码中所有bean的@Data注解去掉加上get/set方法
若不喜欢使用响应结果集工具类的直接删除util包按照视频教学返回map即可
- 接口
![输入图片说明](../image.png)
- 主界面
![输入图片说明](../image2.png)