BAEL-8841 Merge vaadin and vaadin-spring
- Moved vaadin-spring code to vaadin module
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(Application.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public CommandLineRunner loadData(EmployeeRepository repository) {
|
||||
return (args) -> {
|
||||
repository.save(new Employee("Bill", "Gates"));
|
||||
repository.save(new Employee("Mark", "Zuckerberg"));
|
||||
repository.save(new Employee("Sundar", "Pichai"));
|
||||
repository.save(new Employee("Jeff", "Bezos"));
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user