JAVA-10516: Revisit spring-boot module inside spring-boot-modules folder (#12038)
This commit is contained in:
@@ -16,8 +16,7 @@
|
||||
<relativePath>../parent-boot-2</relativePath>
|
||||
</parent>
|
||||
|
||||
<modules>
|
||||
<module>spring-boot</module>
|
||||
<modules>
|
||||
<module>spring-boot-1</module>
|
||||
<module>spring-boot-2</module>
|
||||
<module>spring-boot-admin</module>
|
||||
@@ -56,6 +55,7 @@
|
||||
<module>spring-boot-mvc</module>
|
||||
<module>spring-boot-mvc-2</module>
|
||||
<module>spring-boot-mvc-3</module>
|
||||
<module>spring-boot-mvc-4</module>
|
||||
<module>spring-boot-mvc-birt</module>
|
||||
<module>spring-boot-mvc-jersey</module>
|
||||
<module>spring-boot-nashorn</module>
|
||||
|
||||
@@ -8,3 +8,5 @@ This module contains articles about Spring Boot customization 2
|
||||
- [XML Defined Beans in Spring Boot](https://www.baeldung.com/spring-boot-xml-beans)
|
||||
- [What Is OncePerRequestFilter?](https://www.baeldung.com/spring-onceperrequestfilter)
|
||||
- [Spring Boot Exit Codes](https://www.baeldung.com/spring-boot-exit-codes)
|
||||
- [Guide to Spring Type Conversions](https://www.baeldung.com/spring-type-conversions)
|
||||
- [Container Configuration in Spring Boot 2](https://www.baeldung.com/embeddedservletcontainercustomizer-configurableembeddedservletcontainer-spring-boot)
|
||||
@@ -19,10 +19,23 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${guava.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.rss;
|
||||
package com.baeldung.container;
|
||||
|
||||
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
||||
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.boot;
|
||||
package com.baeldung.typeconversion;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
+5
-4
@@ -1,12 +1,13 @@
|
||||
package com.baeldung.boot.config;
|
||||
package com.baeldung.typeconversion.config;
|
||||
|
||||
import com.baeldung.boot.converter.StringToEmployeeConverter;
|
||||
import com.baeldung.boot.converter.StringToEnumConverterFactory;
|
||||
import com.baeldung.boot.converter.GenericBigDecimalConverter;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.format.FormatterRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
import com.baeldung.typeconversion.converter.GenericBigDecimalConverter;
|
||||
import com.baeldung.typeconversion.converter.StringToEmployeeConverter;
|
||||
import com.baeldung.typeconversion.converter.StringToEnumConverterFactory;
|
||||
|
||||
@Configuration
|
||||
public class WebConfig implements WebMvcConfigurer {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.boot.converter;
|
||||
package com.baeldung.typeconversion.converter;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import org.springframework.core.convert.TypeDescriptor;
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package com.baeldung.boot.converter;
|
||||
package com.baeldung.typeconversion.converter;
|
||||
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
import com.baeldung.toggle.Employee;
|
||||
import com.baeldung.typeconversion.entity.Employee;
|
||||
|
||||
public class StringToEmployeeConverter implements Converter<String, Employee> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.boot.converter;
|
||||
package com.baeldung.typeconversion.converter;
|
||||
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.core.convert.converter.ConverterFactory;
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.baeldung.boot.converter.controller;
|
||||
package com.baeldung.typeconversion.converter.controller;
|
||||
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baeldung.toggle.Employee;
|
||||
import com.baeldung.typeconversion.entity.Employee;
|
||||
|
||||
@RestController
|
||||
public class StringToEmployeeConverterController {
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package com.baeldung.typeconversion.domain;
|
||||
|
||||
public enum Modes {
|
||||
|
||||
ALPHA, BETA;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.toggle;
|
||||
package com.baeldung.typeconversion.entity;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package com.baeldung.converter;
|
||||
package com.baeldung.typeconversion.converter;
|
||||
|
||||
import com.baeldung.toggle.Employee;
|
||||
import com.baeldung.typeconversion.Application;
|
||||
import com.baeldung.typeconversion.domain.Modes;
|
||||
import com.baeldung.typeconversion.entity.Employee;
|
||||
|
||||
import com.baeldung.boot.Application;
|
||||
import com.baeldung.boot.domain.Modes;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.converter.controller;
|
||||
package com.baeldung.typeconversion.converter.controller;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -8,14 +8,14 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
|
||||
import com.baeldung.typeconversion.Application;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||
|
||||
import com.baeldung.boot.Application;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK, classes = Application.class)
|
||||
@AutoConfigureMockMvc
|
||||
@@ -5,3 +5,4 @@ This module contains articles about Spring Boot CRUD Operations
|
||||
### Relevant Articles:
|
||||
- [Spring Boot CRUD Application with Thymeleaf](https://www.baeldung.com/spring-boot-crud-thymeleaf)
|
||||
- [Using a Spring Boot Application as a Dependency](https://www.baeldung.com/spring-boot-dependency)
|
||||
- [A Guide to Spring in Eclipse STS](https://www.baeldung.com/eclipse-sts-spring)
|
||||
+2
-1
@@ -1,12 +1,13 @@
|
||||
package com.baeldung.boot;
|
||||
|
||||
import com.baeldung.session.exception.Application;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.session.exception.Application;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = Application.class)
|
||||
@TestPropertySource("classpath:exception.properties")
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.baeldung.boot.repository;
|
||||
|
||||
import com.baeldung.boot.DemoApplicationIntegrationTest;
|
||||
import com.baeldung.demo.DemoApplicationIntegrationTest;
|
||||
import com.baeldung.demo.model.Foo;
|
||||
import com.baeldung.demo.repository.FooRepository;
|
||||
import org.junit.Before;
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.baeldung.boot.repository;
|
||||
|
||||
import com.baeldung.boot.DemoApplicationIntegrationTest;
|
||||
import com.baeldung.demo.DemoApplicationIntegrationTest;
|
||||
import com.baeldung.demo.model.Foo;
|
||||
import com.baeldung.demo.repository.FooRepository;
|
||||
import org.junit.Test;
|
||||
+1
@@ -3,6 +3,7 @@ package com.baeldung.boot.repository;
|
||||
import com.baeldung.boot.ApplicationIntegrationTest;
|
||||
import com.baeldung.demo.model.Foo;
|
||||
import com.baeldung.session.exception.repository.FooRepository;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user