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.ui;
package org.springframework.zero.sample.web.ui;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.springframework.bootstrap.sample.ui;
package org.springframework.zero.sample.web.ui;
import java.util.Calendar;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.springframework.bootstrap.sample.ui;
package org.springframework.zero.sample.web.ui;
/**
* @author Rob Winch

View File

@@ -14,19 +14,19 @@
* limitations under the License.
*/
package org.springframework.bootstrap.sample.ui;
package org.springframework.zero.sample.web.ui;
import org.springframework.bootstrap.SpringApplication;
import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import org.springframework.zero.SpringApplication;
import org.springframework.zero.context.annotation.EnableAutoConfiguration;
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class UiBootstrapApplication {
public class SampleWebUiApplication {
@Bean
public MessageRepository messageRepository() {
@@ -44,7 +44,7 @@ public class UiBootstrapApplication {
}
public static void main(String[] args) throws Exception {
SpringApplication.run(UiBootstrapApplication.class, args);
SpringApplication.run(SampleWebUiApplication.class, args);
}
}

View File

@@ -11,13 +11,11 @@
* specific language governing permissions and limitations under the License.
*/
package org.springframework.bootstrap.sample.ui.mvc;
package org.springframework.zero.sample.web.ui.mvc;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.bootstrap.sample.ui.Message;
import org.springframework.bootstrap.sample.ui.MessageRepository;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
@@ -26,6 +24,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import org.springframework.zero.sample.web.ui.Message;
import org.springframework.zero.sample.web.ui.MessageRepository;
/**
* @author Rob Winch