|
2 | 2 |
|
3 | 3 | Refer to [changelog](changelog.md) for feature update. |
4 | 4 |
|
5 | | -Sample applications to lear usage of DaoGen framework. |
| 5 | +Sample applications to learn usage of DaoGen framework. |
6 | 6 |
|
7 | 7 | Index : |
8 | 8 | 1. Run the project |
9 | 9 | 2. Configuration notes |
10 | 10 | 3. DaoGen tutorial |
11 | | -4. Maven Plugin |
12 | | -5. Support for websphere liberty |
13 | | - |
14 | 11 |
|
15 | 12 | ## 1. Run the project ## |
16 | 13 |
|
17 | | -1. Add to a server (tested with tomcat9 / jdk9). |
18 | | -2. Open one of the rest URL http://localhost:8080/fj-daogen-quickstart/jax-rs/person/load/deep/id/3 |
| 14 | +1. Minimum java 17 is required |
| 15 | +2. mvn spring-boot:run |
| 16 | +3. Open one of the rest URL http://localhost:8080/fj-daogen-quickstart/jax-rs/person/load/deep/id/3 |
19 | 17 |
|
20 | 18 | NOTE: index page fj-daogen-quickstart contains a few api links |
21 | 19 |
|
@@ -138,52 +136,3 @@ public class DaogenQuickstart extends javax.ws.rs.core.Application { |
138 | 136 | Start the application and test the service : |
139 | 137 |
|
140 | 138 | http://localhost:8080/fj-daogen-quickstart/jax-rs/equipment/load/id/21 |
141 | | - |
142 | | - |
143 | | -## 4. Maven Plugin ## |
144 | | - |
145 | | -Since version 0.1.7 is possibile to use the maven plugin to generate code. |
146 | | - |
147 | | -The activation happen with the 'fj-daogen:generate' goal : |
148 | | - |
149 | | -mvn clean install fj-daogen:generate |
150 | | - |
151 | | -Here is an example code : |
152 | | - |
153 | | -``` |
154 | | - <plugin> |
155 | | - <groupId>org.fugerit.java</groupId> |
156 | | - <artifactId>fj-daogen-maven-plugin</artifactId> |
157 | | - <configuration> |
158 | | - <daogen.config>${project.basedir}/src/main/resources/daogen/daogen-config.xml</daogen.config> |
159 | | - </configuration> |
160 | | - <executions> |
161 | | - <execution> |
162 | | - <phase>compile</phase> |
163 | | - <goals> |
164 | | - <goal>generate</goal> |
165 | | - </goals> |
166 | | - </execution> |
167 | | - </executions> |
168 | | - </plugin> |
169 | | -``` |
170 | | - |
171 | | - |
172 | | -## 5. Support for websphere liberty ## |
173 | | - |
174 | | -Is now possibile to run the quickstart on a standalone websphere liberty application server, activating the profile 'wlp' |
175 | | - |
176 | | -To start the server : |
177 | | -`mvn clean install liberty:run -P wlp` |
178 | | - |
179 | | -To stop the server |
180 | | -`mvn liberty:stop -P wlp` |
181 | | - |
182 | | -After starting the server, you can access the webapp at link [http://localhost:8080/fj-daogen-quickstart/](http://localhost:8080/fj-daogen-quickstart/) |
183 | | - |
184 | | -The template for this profile is based on the sample websphere liberty project : |
185 | | -[websphere liberty profile sample project](https://gitlab.com/fugerit-org/fj-sample-wlp) |
186 | | - |
187 | | -The server configuration template is here : [src/main/freemarker/template/server_ftl.xml](src/main/freemarker/template/server_ftl.xml) |
188 | | - |
189 | | -NOTE: the template has been configured to use port 8080. |
0 commit comments