apache tomcat catalina as maven dependency for CORS filter

后端 未结 2 1981
自闭症患者
自闭症患者 2021-02-20 07:45

I\'m using org.apache.catalina.filters.CorsFilter in my webapp. So I specify the maven dependency


    org.apache.tomcat         


        
2条回答
  •  -上瘾入骨i
    2021-02-20 08:08

    You can add the jar to your repository and modify the .openshift/config/catalina.properties to let tomcat see it:

    shared.loader=${catalina.home}/../app-root/runtime/repo/_your_jar_folder_
    

    You can also use the common.loader - look up tomcat's refs for difference.

提交回复
热议问题