Added the Static Resource Examples (#8786)

This commit is contained in:
Mona Mohamadinia 2020-03-30 21:44:37 +04:30 committed by GitHub
parent e2cdccff28
commit 1734250d97
2 changed files with 14 additions and 1 deletions

View File

@ -1 +1,4 @@
spring.main.allow-bean-definition-overriding=true spring.main.allow-bean-definition-overriding=true
spring.mvc.static-path-pattern=/content/**
spring.webflux.static-path-pattern=/content/**
spring.resources.static-locations=classpath:/files/,classpath:/static-files

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
Hello World!
</body>
</html>