url is not defined问题的解决方法

问题描述

启动SpringBoot项目报错,显示我没有在.yml或者.properties文件里面定义url

问题解决

在合适位置加上这行代码:

    url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&useSSL=false

即可解决!

posted @ 2023-05-29 21:05  yesyes1  阅读(681)  评论(0)    收藏  举报