网页搭建
压缩包解压文件,使用idea打开即可。
IDEA创建
设置启动类
点击启动并打开浏览器输入localhost:8080
因为没有输入任何信息,所以是这样的。
常用配置说明
Key | Description |
---|---|
debug | 开启debug模式的日志打印 |
logging.level.*: | *为要打印日志的包,值为日志打印级别。例如:logging.level.org.springframework=DEBUG |
spring.jackson.date-format: | JSON日期格式,例如: yyyy-MM-dd HH:mm:ss |
spring.jackson.time-zone: | JSON日期格式化时,使用的时区,如: GMT+8 |
spring.jackson.serialization.indent-output: | 美化JSON数据格式,会换行及缩进 |