Edit guide base on updates
This commit is contained in:
parent
5a0a5d7ff6
commit
1a8473d8e3
@ -41,7 +41,9 @@ This spreadsheet contains a first name and a last name on each row, separated by
|
|||||||
|
|
||||||
Next, you write a SQL script to create a table to store the data.
|
Next, you write a SQL script to create a table to store the data.
|
||||||
|
|
||||||
<@snippet path="src/main/resources/schema.sql" prefix="initial"/>
|
<@snippet path="src/main/resources/schema-all.sql" prefix="initial"/>
|
||||||
|
|
||||||
|
> **Note:** Spring Zero runs `schema-@@platform@@` automatically during startup. `-all` is the default for all platforms.
|
||||||
|
|
||||||
<a name="initial"></a>
|
<a name="initial"></a>
|
||||||
Create a business class
|
Create a business class
|
||||||
|
14
README.md
14
README.md
@ -63,15 +63,15 @@ In a project directory of your choosing, create the following subdirectory struc
|
|||||||
<version>0.1.0</version>
|
<version>0.1.0</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.bootstrap</groupId>
|
<groupId>org.springframework.zero</groupId>
|
||||||
<artifactId>spring-bootstrap-starters</artifactId>
|
<artifactId>spring-starter-parent</artifactId>
|
||||||
<version>0.5.0.BUILD-SNAPSHOT</version>
|
<version>0.5.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.bootstrap</groupId>
|
<groupId>org.springframework.zero</groupId>
|
||||||
<artifactId>spring-bootstrap-batch-starter</artifactId>
|
<artifactId>spring-starter-batch</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.hsqldb</groupId>
|
<groupId>org.hsqldb</groupId>
|
||||||
@ -124,7 +124,7 @@ This spreadsheet contains a first name and a last name on each row, separated by
|
|||||||
|
|
||||||
Next, you write a SQL script to create a table to store the data.
|
Next, you write a SQL script to create a table to store the data.
|
||||||
|
|
||||||
`src/main/resources/schema.sql`
|
`src/main/resources/schema-all.sql`
|
||||||
```sql
|
```sql
|
||||||
DROP TABLE people IF EXISTS;
|
DROP TABLE people IF EXISTS;
|
||||||
|
|
||||||
@ -135,6 +135,8 @@ CREATE TABLE people (
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note:** Spring Zero runs `schema-@@platform@@` automatically during startup. `-all` is the default for all platforms.
|
||||||
|
|
||||||
<a name="initial"></a>
|
<a name="initial"></a>
|
||||||
Create a business class
|
Create a business class
|
||||||
-----------------------
|
-----------------------
|
||||||
@ -228,6 +230,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import org.springframework.autoconfigure.EnableAutoConfiguration;
|
||||||
import org.springframework.batch.core.Job;
|
import org.springframework.batch.core.Job;
|
||||||
import org.springframework.batch.core.Step;
|
import org.springframework.batch.core.Step;
|
||||||
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
|
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
|
||||||
@ -244,7 +247,6 @@ import org.springframework.batch.item.file.mapping.BeanWrapperFieldSetMapper;
|
|||||||
import org.springframework.batch.item.file.mapping.DefaultLineMapper;
|
import org.springframework.batch.item.file.mapping.DefaultLineMapper;
|
||||||
import org.springframework.batch.item.file.transform.DelimitedLineTokenizer;
|
import org.springframework.batch.item.file.transform.DelimitedLineTokenizer;
|
||||||
import org.springframework.bootstrap.SpringApplication;
|
import org.springframework.bootstrap.SpringApplication;
|
||||||
import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user