Migrate SpringBootWebApplicationTest to spring profiles

- Instead of replacing configuration with dev configuration on classpath,
create dev profile and use that
- Move common properties to application.yaml

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-18 00:26:34 +01:00
parent 9838ae7e0f
commit 52a862c43b
4 changed files with 41 additions and 31 deletions

View File

@@ -5,8 +5,33 @@ datasource:
jndiName: java:comp/env/jdbc/runelite-cache2
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
# so if multiple apis are deployed 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
spring.jmx.enabled: false
# Google OAuth client
oauth:
client-id:
client-secret:
# Minio client storage for cache
minio:
endpoint: http://localhost:9000
accesskey: AM54M27O4WZK65N6F8IP
secretkey: /PZCxzmsJzwCHYlogcymuprniGCaaLUOET2n6yMP
bucket: runelite
# Redis client for temporary data storage
redis:
pool.size: 10
host: http://localhost:6379
# Twitter client for feed
runelite:
twitter:
consumerkey:
secretkey:
listid: 968949795153948673