SpringBoot + ActiveMQ - How to set trusted packages?

后端 未结 6 1142
既然无缘
既然无缘 2021-02-19 04:47

I\'m creating two springboot server & client applications communicating using JMS, and everything is working fine with the release 5.12.1 for activemq, but as s

6条回答
  •  轮回少年
    2021-02-19 05:32

    I am setting Java_opts something like below and passing to java command and its working for me.

    JAVA_OPTS=-Xmx256M -Xms16M -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*
    java $JAVA_OPTS -Dapp.config.location=/data/config -jar .jar --spring.config.location=file:/data/config/.yml
    

提交回复
热议问题