Restructure 'bootstrap' to use 'zero'

This commit is contained in:
Phillip Webb
2013-07-05 16:44:24 -07:00
parent d039822064
commit 261955c50b
443 changed files with 1361 additions and 1774 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bootstrap.sample.consumer;
package org.springframework.zero.sample.integration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.bootstrap.sample.consumer;
package org.springframework.zero.sample.integration;
import java.io.File;
import java.io.FileInputStream;

View File

@@ -14,24 +14,24 @@
* limitations under the License.
*/
package org.springframework.bootstrap.sample.consumer;
package org.springframework.zero.sample.integration;
import org.springframework.bootstrap.SpringApplication;
import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration;
import org.springframework.bootstrap.context.annotation.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.zero.SpringApplication;
import org.springframework.zero.context.annotation.EnableAutoConfiguration;
import org.springframework.zero.context.annotation.EnableConfigurationProperties;
@Configuration
@EnableAutoConfiguration
@EnableConfigurationProperties(ServiceProperties.class)
@ComponentScan
@ImportResource("integration-context.xml")
public class IntegrationBootstrapApplication {
public class SampleIntegrationApplication {
public static void main(String[] args) throws Exception {
SpringApplication.run(IntegrationBootstrapApplication.class, args);
SpringApplication.run(SampleIntegrationApplication.class, args);
}
}

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.bootstrap.sample.consumer;
package org.springframework.zero.sample.integration;
import org.springframework.bootstrap.context.annotation.ConfigurationProperties;
import org.springframework.zero.context.annotation.ConfigurationProperties;
@ConfigurationProperties(name = "service", ignoreUnknownFields = false)
public class ServiceProperties {