File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
mtdrworkshop/backend/src/main/java/com/oracle/todoapp Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 77package com .oracle .todoapp ;
88
99import java .io .IOException ;
10- import java .sql .SQLException ;
1110import java .util .logging .LogManager ;
1211
1312import io .helidon .config .Config ;
2423 */
2524public final class Main {
2625
27- public static void main (final String [] args )
28- throws IOException , SQLException {
26+ public static void main (final String [] args ) throws IOException {
2927 System .out .println ("Working Directory = " + System .getProperty ("user.dir" ));
3028 System .setProperty ("oracle.jdbc.fanEnabled" , "false" );
3129
@@ -34,7 +32,7 @@ public static void main(final String[] args)
3432 .readConfiguration (
3533 Main .class .getResourceAsStream ("/logging.properties" ));
3634 Config config = Config .create ();
37-
35+
3836 WebServer .builder ()
3937 .config (config .get ("server" )) // update this server configuration from the config provided
4038 .addMediaSupport (JsonpSupport .create ())
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ static JsonObject toJsonArray(List<TodoItem> items) {
121121 itemsJSONArray .add (toJsonObject (p ));
122122 });
123123
124- return Json .createObjectBuilder ()
125- .add ("items" , itemsJSONArray ).build ();
124+ return Json .createObjectBuilder ().add ("items" , itemsJSONArray ).build ();
126125 }
127126}
You can’t perform that action at this time.
0 commit comments