idea

idea中tomcat乱码:
a.file->settings->搜File Encoding,全改为utf-8
b.打开idea工作目录,idea.exe.vmoptions和idea64.exe.vmoptions最后追加-Dfile.encoding=UTF-8
c.配置tomcat页面中:VM option设置:-Dfile.encoding=UTF-8

热部署问题(jsp+java)
Update:更新操作(经测试,很多次无效)
Frame:idea失去焦点
推荐选项:
Update:任意
Frame:update classes and resources

idea: 热部署,如果是run启动,仅JSP等静态资源有效
如果是debug启动,java和jsp等均有效

总结 热部署
a.Frame:update classes and resources
b.以debug模式启动
注意:编写servlet前需要加入tomcat环境

posted @ 2020-06-17 14:10  myyismyy  阅读(102)  评论(0)    收藏  举报