How the page plays the video of the server

problem description

the system will dynamically upload videos, which can be accessed by modifying the tomcat server.xml configuration file and "ip/resources", as shown in the figure below, but it needs to be restarted to take effect. How to allow new resources (videos) to take effect without restarting tomcat

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

now, when you start up, you can access whatever resources you have. Newly uploaded videos in the running process cannot be accessed, and some resources can be accessed after they are deleted at startup. How can you dynamically access resources based on whether the file exists?

<Engine name="Catalina" defaultHost="localhost">
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="/applog/log/tomcat/"
           prefix="localhost_access_log" suffix=".txt"
           pattern="%h %l %u %t "%r" %s %b" />

            <Context docBase="operate" path="/operate" reloadable="true" />
            <Context docBase="/zxsdedata/ddjfimage" path="/resources" reloadable="true" />
  </Host>
</Engine>

clipboard.png

May.15,2022
Menu