-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
33 lines (25 loc) · 1.36 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
based on:
http://ingini.org/2015/03/26/authentication-authorization-schema-design-with-mongodb/
file uploads :
http://stackoverflow.com/questions/21123437/how-do-i-use-spring-boot-to-serve-static-content-located-in-dropbox-folder
or from tomcat:
<Context docBase="/path/to/files" path="/files" />
This way they'll be accessible through http://example.com/files/....
serve static file content :
http://stackoverflow.com/questions/21123437/how-do-i-use-spring-boot-to-serve-static-content-located-in-dropbox-folder
http://stackoverflow.com/questions/25061237/spring-4-addresourcehandlers-not-resolving-the-static-resources
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/files/**").addResourceLocations("file:///C:\\temp/");
}
usage : http://localhost:8080/files/002.jpg
vide resolver :
addViewControllers -works well without dispatcher since springboot 1.3.3
@controller and @RestController different
http://stackoverflow.com/questions/28646332/how-exactly-works-the-spring-responsebody-annotation-in-this-restful-applicatio
git :
git push origin master // add -f for force push
git commit -m "message"
git add . //stages new and modified, without deleted //-A all include deleted
git remote -v // push and fetch repository
git commit -am "commit message" // stage all the modified and deleted files + commit