Samples cleanup

- Move common properties to samples parent
 - Avoid explicit `ComponentScan` by moving all the classes to the same package
This commit is contained in:
Ilayaperumal Gopinathan
2015-09-02 09:42:30 -07:00
parent 84e5701cc6
commit d4425b3a52
19 changed files with 24 additions and 50 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package source;
package demo;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

View File

@@ -18,12 +18,8 @@ package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import source.TimeSource;
@SpringBootApplication
@ComponentScan(basePackageClasses=TimeSource.class)
public class SourceApplication {
public static void main(String[] args) {

View File

@@ -14,7 +14,10 @@
* limitations under the License.
*/
package source;
package demo;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@@ -26,9 +29,6 @@ import org.springframework.integration.annotation.Poller;
import org.springframework.integration.core.MessageSource;
import org.springframework.messaging.support.GenericMessage;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Dave Syer
* @author Glenn Renfro

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package source;
package demo;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;