File tree Expand file tree Collapse file tree 8 files changed +244
-118
lines changed
spring-boot-configuration
java/com/baeldung/springbootconfiguration
test/java/com/baeldung/springbootconfiguration Expand file tree Collapse file tree 8 files changed +244
-118
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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 /
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments