|
38 | 38 | </p>
|
39 | 39 | <subsection name="Purpose">
|
40 | 40 | <p>
|
41 |
| - This new JPetStore comes with the same idea in mind than for its predecessors: <strong>keep it simple</strong>. The main purpose behind JPetStore 6 |
42 |
| - is to demonstrate that a full web application can be built with just a few classes, and what is more important, with no advanced coding |
43 |
| - skills. You just need to know plain Java and SQL. |
| 41 | + This new JPetStore comes with the same idea in mind than its predecessors: <strong>keep it simple</strong>. |
| 42 | + The purpose of JPetStore 6 is to demonstrate how to build a web application with very few classes and no advanced coding skills. |
| 43 | + You just need to know plain Java and SQL. |
44 | 44 | </p>
|
45 | 45 | <p>
|
46 |
| - The 6th version of JPetStore is the smallest one in the family. It uses just 24 java classes while keeping a good design and program structure. |
47 |
| - As we will see a bit later, you will not find JDBC code, object creation, binding code or transaction handling code. What is more |
48 |
| - impressive is that you <strong>will not even find any call to the MyBatis API</strong>. Although this sounds magical, you will see that the |
49 |
| - combination of MyBatis mappers and dependency injection lets you build applications with no dependency on MyBatis. |
| 46 | + The 6th version of JPetStore is the smallest one in the family. |
| 47 | + It uses just 24 java classes while keeping a good design and program structure. |
| 48 | + As we will see later on, you will find no code for dealing with JDBC, for creating objects or bind them or to handle transactions. |
| 49 | + What is more impressive is that you <strong>will not find any call to the MyBatis API</strong>. |
| 50 | + Although this sounds magical, you will see that the combination of MyBatis mappers and dependency injection lets you |
| 51 | + build applications without dependencies. |
50 | 52 | </p>
|
51 | 53 | </subsection>
|
52 | 54 | <subsection name="Program Structure">
|
|
171 | 173 |
|
172 | 174 | <p>
|
173 | 175 | <span class="label important">NOTE</span> Spring's component scan feature is not able to find MyBatis mappers.
|
174 |
| - A mapper is not a plain bean and Spring would not know how to instantiate it. We will need a |
175 |
| - <code>MapperScannerConfigurer</code> for that, as we will see soon. |
| 176 | + A mapper is not a plain bean and Spring would not know how to instantiate it. We will see how to search for |
| 177 | + mappers soon. |
176 | 178 | </p>
|
177 | 179 |
|
178 | 180 | <p>We will also need a <code>DataSource</code> and a <code>TransactionManager</code>. Given that this is a demo application
|
|
0 commit comments