IntelliJ and Tomcat…changed files are not automatically recognized by Tomcat

前端 未结 6 1516
攒了一身酷
攒了一身酷 2020-11-28 01:03

I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat.

When I change a file like an xhtml file, i

6条回答
  •  误落风尘
    2020-11-28 01:41

    if you have multipartfiles that you want to view/play right away, upload directly into the targetfolder. *(only change the write location to the target folder/static/)

    String yourpath = C\\andSoForth
        yourPath + "\\target\\classes\\static\\uploads\\audiofiles\\"
    

    youll be able to view your file immediately without having to restart your IDE

提交回复
热议问题