You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2015-03-17-getting-started.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ order: 10
9
9
We provide a pippo-demo module that contains many demo applications (submodules): pippo-demo-basic and pippo-demo-crud are some.
10
10
For a list with all demo please see [Demo](demo.html) section.
11
11
12
-
#### Routes approach
12
+
#### 1. Routes approach
13
13
14
14
For [pippo-demo-basic]({{ site.demourl }}/pippo-demo-basic) you have two java files: [BasicDemo.java]({{ site.demourl }}/pippo-demo-basic/src/main/java/ro/pippo/demo/basic/BasicDemo.java) and [BasicApplication.java]({{ site.demourl }}/pippo-demo-basic/src/main/java/ro/pippo/demo/basic/BasicApplication.java)
15
15
We split our application in two parts for a better readability.
@@ -101,7 +101,7 @@ Open your internet browser and check the routes declared in Application:
101
101
- `http://localhost:8338/negotiate`
102
102
- `http://localhost:8338/template`
103
103
104
-
#### Controllers approach
104
+
#### 2. Controllers approach
105
105
106
106
Another approach to handling a request and producing a response is using Controllers. After routing has determined what controller to use, an action method will be invoked.
107
107
In Pippo, controllers are instances of [Controller]({{ site.codeurl }}/pippo-controller-parent/pippo-controller/src/main/java/ro/pippo/controller/Controller.java).
0 commit comments