springboot项目启动报错:Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.jackson.time-zone' in value "${spring.jackson.time-zone}"
按照网上查阅的资料,应该是配置文件出了问题。
配置文件代码如下:
server:
port: 8888
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/rainng_course?useUnicode=true&characterEncoding=utf-8
username: root
password: root
redis:
host: localhost
port: 6379
session:
store-type: redis
timeout: 86400
jackson:
time-zone: Asia/Shanghai
data:
mongodb:
uri: mongodb://localhost:27017/rainng_course
mybatis-plus:
mapper-locations: classpath:mapping/*.xml
type-aliases-package: com.rainng.student_information_system.model
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
错误截图:
说明:windows11的MySQL,Redis,Mongodb都已安装并且可以连接,但是Redis和Mongodb刚刚自学,还不是很熟悉。所以出现了一些问题,希望网友能给予解答。