Fork me on github
摘要: 默认的静态资源目录为resources目录下的: public static resources META-INF/resources 请求进来,先去找Controller看能不能处理,不能处理的所有请求都交给静态资源处理器 静态资源处理器就会去对应目录寻找相关的静态资源 可以通过配置进行修改默认的 阅读全文
posted @ 2022-08-09 16:52 zjy4fun 阅读(183) 评论(0) 推荐(0) 编辑
摘要: @RestController = @ResponseBody + @Controller @Controller 指定 string 跳转到 html 模板页面 @RestController 直接返回实体对象(String, Object, Json等) 阅读全文
posted @ 2022-08-09 15:09 zjy4fun 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pan.baidu.com/s/1Vegwkhm3xhsIjxHBNJaeYw 提取码:3fhv 阅读全文
posted @ 2022-08-09 14:39 zjy4fun 阅读(27) 评论(0) 推荐(0) 编辑