之前配置springboot时图方便把application.properties文件后缀改成了yml,导致后续从前端传数据到数据库时,一直报500错,重新改回properties问题解决~
server.port=9090
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/spring?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
spring.datasource.username=root
spring.datasource.password=010618
mybatis-plus.type-aliases-package= com.peanut.entity
mybatis-plus.mapper-locations= classpath:/src/main/resources/mapper/*Mapper.xml
mybatis-plus.configuration.map-underscore-to-camel-case= false