Spring Boot 项目配置

1 . 端口配置,在application.yml里设置server.port属性 配置context-path,如果不配置context-path,访问路径是localhost:8081/hello 如果配置context-path: /test, 那么访问路径就变换成localhost:8081/test/hello 属性注入 配置里使用配置 对象属性注入 6. 开发环境与生产环境区分
相关文章
相关标签/搜索