http service: disable spring jmx

Multiple api deployments is causing Spring to try to register the
datasources multiple times and is erroring
This commit is contained in:
Adam
2019-02-21 08:51:39 -05:00
parent 18167a7782
commit 3c1da4bb1e

View File

@@ -4,4 +4,9 @@ datasource:
runelite-cache:
jndiName: java:comp/env/jdbc/runelite-cache2
runelite-tracker:
jndiName: java:comp/env/jdbc/runelite-tracker
jndiName: java:comp/env/jdbc/runelite-tracker
# By default Spring tries to register the datasource as an MXBean,
# so if multiple apis are delpoyed on one web container with
# shared datasource it tries to register it multiples times and
# fails when starting the 2nd api
spring.jmx.enabled: false