毕设旅游宝APP开发流程技术记录
起步构思
项目大概设计大概可以分为几大模块:
- 闪屏页
- 引导页
- 登录注册
- 主页面-底部导航
a.旅游精选 b.语音导游 c.时光分享 d.智能陪聊 f.个人中心
数据对象-数据库设计
- 划分实体:
用户,景区,信息 - 实体间的关系绘制,一对一,一对多,多对多(使用桥表设计)
用户——评论——景区(多对多)
用户——发表——信息(一对多)
用户——评论——信息(多对多)
用户——点赞——信息(多对多) - 实体属性填补——先写主要信息,后面再想再补充
先主干模块-页面主页设计
- 先拿下底部导航的实现
- 再逐个实现每个子模块
- 模块与后台的数据交互
- 模块与模块间的数据交互
项目中的问题与技术实现
问题1
下面展示一些 错误信息
。
2020-01-22 16:53:22.819 WARN 1408 --- [nio-8810-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]
原因-解决问题: 更改@xxx,参数等需要重启项目
问题2
错误:2020.1.31
报错:check the manual that corresponds to your MySQL server version for
原因-解决问题: 由于在设计数据库字段时,存在关键字desc,所以产生了冲突问题
问题3
java.sql.SQLException: The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
原因-解决问题:
url加上字段:serverTimezone=UTC
//北京时间东八区
serverTimezone=GMT%2B8
//或者使用上海时间
serverTimezone=Asia/Shanghai
可参照:https://blog.csdn.net/love20yh/article/details/80799610
springboot-pom.xml-配置如下:
#spring.datasource.url=jdbc:mysql://localhost:3306/demox?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
springboot-mybatis-generator逆向工程-配置如下
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://127.0.0.1:3306/demox?serverTimezone=GMT%2B8"
userId="root"
password="root">
</jdbcConnection>-->