Spring Boot Configration

Jetty On Web

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

Self4J Conflict

1
2
3
4
5
6
7
8
9
10
 <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>

Unite Test

Configration Application Class

1
2
3
4
5
@RunWith(SpringRunner::class)
@SpringBootTest(classes = [NoProducerApplication::class])
// or use @ContextConfiguration(classes = [MockApplication::class])

spring.main.allow-bean-definition-overriding=true