Skip to content

Commit a249fba

Browse files
author
Krzysztof Majewski
committed
BAEL-2493
1 parent ce418d1 commit a249fba

File tree

8 files changed

+244
-118
lines changed

8 files changed

+244
-118
lines changed

pom.xml

Lines changed: 121 additions & 118 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
HELP.md
2+
/target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
5+
### STS ###
6+
.apt_generated
7+
.classpath
8+
.factorypath
9+
.project
10+
.settings
11+
.springBeans
12+
.sts4-cache
13+
14+
### IntelliJ IDEA ###
15+
.idea
16+
*.iws
17+
*.iml
18+
*.ipr
19+
20+
### NetBeans ###
21+
/nbproject/private/
22+
/nbbuild/
23+
/dist/
24+
/nbdist/
25+
/.nb-gradle/
26+
/build/
27+
28+
### VS Code ###
29+
.vscode/

spring-boot-configuration/README.MD

Whitespace-only changes.

spring-boot-configuration/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<artifactId>parent-boot-2</artifactId>
8+
<groupId>com.baeldung</groupId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
<relativePath>../parent-boot-2</relativePath>
11+
</parent>
12+
13+
<groupId>com.baeldung</groupId>
14+
<artifactId>spring-boot-configuration</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<name>spring-boot-configuration</name>
17+
<description>Demo project for Spring Boot configuration</description>
18+
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-web</artifactId>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-starter-test</artifactId>
28+
<scope>test</scope>
29+
</dependency>
30+
</dependencies>
31+
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-maven-plugin</artifactId>
37+
</plugin>
38+
</plugins>
39+
</build>
40+
41+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.baeldung.springbootconfiguration;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SpringBootConfigurationApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(SpringBootConfigurationApplication.class, args);
11+
}
12+
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# server configuration
2+
server.port=80
3+
server.address=127.0.0.1
4+
5+
## Error handling configuration
6+
server.error.whitelabel.enabled=true
7+
server.error.path=/user-error
8+
server.error.include-exception=true
9+
server.error.include-stacktrace=always
10+
11+
## Server connections configuration
12+
server.tomcat.max-threads=200
13+
server.connection-timeout=5s
14+
server.max-http-header-size=8KB
15+
server.tomcat.max-swallow-size=2MB
16+
server.tomcat.max-http-post-size=2MB
17+
18+
## Access logs configuration
19+
server.tomcat.accesslog.enabled=true
20+
server.tomcat.accesslog.directory=logs
21+
server.tomcat.accesslog.file-date-format=yyyy-MM-dd
22+
server.tomcat.accesslog.prefix=access_log
23+
server.tomcat.accesslog.suffix=.log
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.baeldung.springbootconfiguration;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest
10+
public class SpringContextIntegrationTest {
11+
12+
@Test
13+
public void contextLoads() {
14+
}
15+
16+
}

0 commit comments

Comments
 (0)