change package to com.baeldung

This commit is contained in:
DOHA 2019-07-07 13:46:24 +03:00
parent 8d11845d5b
commit 1888a2f7e8
6 changed files with 23 additions and 8 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.properties;
package com.baeldung.properties.conversion;
public class Employee {

View File

@ -1,4 +1,4 @@
package org.baeldung.properties;
package com.baeldung.properties.conversion;
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding;
import org.springframework.core.convert.converter.Converter;

View File

@ -0,0 +1,14 @@
package com.baeldung.properties.conversion;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackageClasses = { PropertyConversion.class, EmployeeConverter.class })
public class PropertiesConversionApplication {
public static void main(String[] args) {
SpringApplication.run(PropertiesConversionApplication.class, args);
}
}

View File

@ -1,4 +1,4 @@
package org.baeldung.properties;
package com.baeldung.properties.conversion;
import java.time.Duration;
import java.time.temporal.ChronoUnit;

View File

@ -8,9 +8,7 @@ import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackageClasses = {ConfigProperties.class,
JsonProperties.class,
CustomJsonProperties.class,
AdditionalConfiguration.class,
PropertyConversion.class,
EmployeeConverter.class})
AdditionalConfiguration.class})
public class ConfigPropertiesDemoApplication {
public static void main(String[] args) {
new SpringApplicationBuilder(ConfigPropertiesDemoApplication.class).initializers(new JsonPropertyContextInitializer())

View File

@ -1,4 +1,4 @@
package org.baeldung.properties;
package com.baeldung.properties.conversion;
import static org.junit.jupiter.api.Assertions.assertEquals;
@ -12,8 +12,11 @@ import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.unit.DataSize;
import com.baeldung.properties.conversion.PropertiesConversionApplication;
import com.baeldung.properties.conversion.PropertyConversion;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ConfigPropertiesDemoApplication.class)
@SpringBootTest(classes = PropertiesConversionApplication.class)
@TestPropertySource("classpath:conversion.properties")
public class PropertiesConversionIntegrationTest {