根据官网配置即可: 快速开始 | magic-api
问题一:Expected lookupPath in request attribute "org.springframework.web.util.UrlPathHelper.PATH".
当时创建 springboot 选择的版本是 2.6.4 启动就报这错了,让后 将spring boot版本改为 2.4.5 就可以正常 访问了
问题二:使用magic-api 查询语句中包含 汉字查不到
在 yaml 中 连接数据url中设置编码格式
url: jdbc:mysql://localhost/magic?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
问题三:如图所示
问题四:magic-api 设置登录密码
magic-api:
security-config:
username: admin
password: 123456# 是 security-config: 不是