Skip to content

Instantly share code, notes, and snippets.

@iborisov
Created September 18, 2015 14:34
Show Gist options
  • Save iborisov/fdef02735d495eb0e3ff to your computer and use it in GitHub Desktop.
Save iborisov/fdef02735d495eb0e3ff to your computer and use it in GitHub Desktop.
Spring Boot boilerplate
spring.application.name = my-app
logging.config = file:logback.xml
<properties>
<spring.boot.version>1.3.0.M5</spring.boot.version>
</properties>
...
<!-- If we need milestone releases -->
<repositories>
<repository>
<id>Spring milestone</id>
<url>http://repo.spring.io/milestone/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Spring milestone</id>
<url>http://repo.spring.io/milestone/</url>
</pluginRepository>
</pluginRepositories>
...
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
<dependencies>
<!-- Autorestarts, livereload, etc. -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<!-- see spring-security.version property from spring-boot-dependencies POM -->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment