-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Maven Exec plugin in order to show how to start application + LTW
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
application/src/main/java/de/scrum_master/app/CounterApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package de.scrum_master.app; | ||
|
||
import spark.Spark; | ||
|
||
import static spark.Spark.get; | ||
|
||
public class CounterApp { | ||
public static void main(String[] args) { | ||
get("/counter", (req, res) -> { | ||
new MyCounter().count(); | ||
return "I ALREADY CALLED COUNTER ASPECT ON METHOD:MyCounter().count()"; | ||
}); | ||
System.out.println("Application starting on port :" + Spark.port()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters