VirtualWebappLoader or similar for WebLogic to add directories to war's classpath?

后端 未结 2 1423
别跟我提以往
别跟我提以往 2021-01-26 18:26

How can I make an external directory (where additional jars will be deployed) available on the classpath of a war deployed to WebLogic?

I am familiar with how to do this

2条回答
  •  醉梦人生
    2021-01-26 18:53

    Yes weblogic has the option to do this as well with virtual-directory-mapping inside weblogic.xml:

    
    
      
        C:\my\images
        *.jpg
        dir/*
      
    
    

    See the Oracle docs here

    Other options to use jars outside of a war include installing the jar as a shared library or simply including the jar files inside of your /lib folder to make them available to all applications.

提交回复
热议问题