Spring boot08 之修改application.properties
来源:互联网 发布:元数据的作用 编辑:程序博客网 时间:2024/06/16 09:53
Spring boot默认是/ ,这样直接通过http://ip:port/就可以访问到index页面,如果要修改为
http://ip:port/path/ 访问的话,
那么需要在Application.properties文件中加入server.context-path = /你的path,
比如:spring-boot,那么访问地址就是http://ip:port/spring-boot 路径。
server.context-path=/spring-boot
Spring boot 默认端口是8080,如果想要进行更改的话,只需要修改applicatoin.properties文件,在配置文件中加入:
server.port=8003
0 0
- Spring boot08 之修改application.properties
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring-Boot初学之配置文件application.properties(thymeleaf模板)
- Spring-Boot初学之配置文件application.properties(数据源配置)
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring boot配置文件 application.properties
- Spring boot Common application properties
- Spring boot配置文件 application.properties
- spring boot application.properties 配置
- Spring Boot配置文件 application.properties
- spring boot配置文件application.properties
- Spring boot配置文件application.properties
- spring boot的application.properties
- Spring Cloud application.properties配置
- spring boot配置文件application.properties
- 如何将spring boot application.properties修改成为spring boot配置文件
- spring boot application properties配置详解
- 【springboot】Spring boot配置文件 application.properties
- read 系统调用剖析--file_operations中read/write函数与内核系统调用的关系
- 质数的后代
- 【技巧】最新最全的城市选择插件
- Mac环境下svn的使用
- JasperReportsAPI和类结构
- Spring boot08 之修改application.properties
- UVA - 11624 多点bfs [kuangbin带你飞]专题一
- LLVM教程( 三)-- LLVM IR
- BTK工具使用
- 音视频码率,采样率,帧率基础知识
- WPF TreeView节点的展开和收缩
- 兼容IE8的旋转角度
- 常见优化问题
- 学习—三部曲