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:
@@ -34,10 +34,9 @@ public class SpringBootWebApplicationTest
|
||||
@Ignore
|
||||
public void run() throws InterruptedException
|
||||
{
|
||||
String[] args = new String[]{
|
||||
"--spring.config.location=classpath:/application.yaml,classpath:/dev.yaml"
|
||||
};
|
||||
SpringApplication.run(SpringBootWebApplication.class, args);
|
||||
System.setProperty("spring.profiles.active", "dev");
|
||||
SpringApplication.run(SpringBootWebApplication.class);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
Thread.sleep(100L);
|
||||
|
||||
@@ -1,19 +1,27 @@
|
||||
# Enable debug logging
|
||||
debug: true
|
||||
logging.level.net.runelite: DEBUG
|
||||
|
||||
# Development data sources
|
||||
datasource:
|
||||
runelite:
|
||||
jndiName:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
type: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
|
||||
url: jdbc:mysql://192.168.1.2/runelite
|
||||
url: jdbc:mysql://localhost:3306/runelite
|
||||
username: runelite
|
||||
password: runelite
|
||||
runelite-cache:
|
||||
jndiName:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
type: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
|
||||
url: jdbc:mysql://192.168.1.2/cache
|
||||
url: jdbc:mysql://localhost:3306/runelite-cache
|
||||
username: runelite
|
||||
password: runelite
|
||||
runelite-tracker:
|
||||
jndiName:
|
||||
driverClassName: com.mysql.jdbc.Driver
|
||||
type: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
|
||||
url: jdbc:mysql://192.168.1.2/xptracker
|
||||
url: jdbc:mysql://localhost:3306/runelite-tracker
|
||||
username: runelite
|
||||
password: runelite
|
||||
@@ -1,25 +1,3 @@
|
||||
oauth:
|
||||
client-id: moo
|
||||
client-secret: cow
|
||||
|
||||
minio:
|
||||
endpoint: http://10.96.22.171:9000
|
||||
accesskey: AM54M27O4WZK65N6F8IP
|
||||
secretkey: /PZCxzmsJzwCHYlogcymuprniGCaaLUOET2n6yMP
|
||||
bucket: runelite
|
||||
|
||||
runelite:
|
||||
twitter:
|
||||
consumerkey: moo
|
||||
secretkey: cow
|
||||
listid: 968949795153948673
|
||||
|
||||
logging:
|
||||
level:
|
||||
net:
|
||||
runelite:
|
||||
DEBUG
|
||||
|
||||
datasource:
|
||||
runelite:
|
||||
driverClassName: org.h2.Driver
|
||||
|
||||
Reference in New Issue
Block a user