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
You can use multiple `FileResourceRoute` but it is nonsense to use more `PublicResourceRoute` or more `WebjarsResourceRoute`.
27
35
28
36
The [CrudNgDemo]({{ site.demourl }}/pippo-demo-crudng) (demo pippo-angularjs integration) is a good application that demonstrates the concept of static files.
29
37
In `src/main/resources` we created a folder __public__ and we put all assets in that folder (imgs, css, js, fonts, ...).
@@ -75,12 +83,12 @@ Sure in your pom.xml file (if you use Maven) you must declare the dependencies t
75
83
</dependency>
76
84
```
77
85
78
-
If you want to serve static files that are not on the classpath then you may use the `FileResourceHandler`.
86
+
If you want to serve static files that are not on the classpath then you may use the `FileResourceRoute`.
79
87
80
88
```java
81
89
Pippo pippo =newPippo();
82
90
// make available some files from a local folder (try a request like 'src/main/resources/simplelogger.properties')
From security reason the `FileResourceHandler` doesn't serve resources from outside it's base directory by using relative paths such as `../../../private.txt`.
94
+
From security reason the `FileResourceRoute` doesn't serve resources from outside it's base directory by using relative paths such as `../../../private.txt`.
0 commit comments