I hereby claim:
- I am altfatterz on github.
- I am altfatterz (https://keybase.io/altfatterz) on keybase.
- I have a public key ASAnynokbxBgngEwA0RkQqIKpe6I9hDyZb7E2fyurSOozwo
To claim this, I am signing this object:
#!/bin/sh | |
REMOTE=mb | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
BATCH_SIZE=10 | |
# count the number of commits to push | |
n=$(git rev-list --count HEAD) | |
echo "Commits to push: $n" |
<build> | |
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> | |
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-clean-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> |
I hereby claim:
To claim this, I am signing this object:
spring.datasource.url=jdbc:postgresql://localhost/test | |
spring.datasource.username=demo | |
spring.datasource.password=pass |
spring.datasource.uri=${DATABASE_URL} | |
spring.data.mongodb.uri=${MONGOLAB_URI} | |
spring.redis.uri=${REDIS_URL} |
public abstract class DatabaseConfig { | |
protected void configureDataSource(org.apache.tomcat.jdbc.pool.DataSource dataSource) { | |
dataSource.setMaxActive(20); | |
dataSource.setMaxIdle(8); | |
dataSource.setMinIdle(8); | |
dataSource.setTestOnBorrow(false); | |
dataSource.setTestOnReturn(false); | |
dataSource.setValidationQuery("SELECT 1"); | |
} |
@Component | |
@ConfigurationProperties(locations = "classpath:mail.properties", ignoreUnknownFields = false, prefix = "mail") | |
public class MailProperties { | |
public static class Smtp { | |
private boolean auth; | |
private boolean starttlsEnable; | |
} | |
@NotBlank |
my.servers[0]=dev.bar.com | |
my.servers[1]=foo.bar.com | |
mvn spring-boot:run | |
java -jar target/myproject.war | |
deploy the war into a container | |
<?xml version="1.0" encoding="UTF-8"?> | |
<project ...> | |
<packaging>war</packaging> | |
<properties> | |
<start-class>com.backbase.progfun.Application</start-class> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-tomcat</artifactId> |