随笔分类 - spring cloud
spring cloud
摘要:java 在linux上 start、stop、restart、status等启动命令,sh脚本,appMgr.sh 放在reources/ops下 #!/usr/bin/sh APP_NAME="@project.name@-@project.version@.jar" DEPLOY_PATH=`
阅读全文
摘要:springboot下的纯html页面乱码带问号?
html访问后端接口 返回的
Content-Type: text/html;charset=ISO-8859-1
所以大概率是springboot编码影响到了html页面
在springboot的application.yml加上以下配置
server:
servlet:
encoding:
#enabled: true #让系统的CharacterEncdoingFilter生效
charset: UTF-8 #默认编码格式
force: true #强制request,response都使用charset属性的值
阅读全文