摘要: //如果我们要扩展springMVC,官方建议我们这样去做 @Configuration public class MyMVCConfig implements WebMvcConfigurer { //视图跳转 @Override public void addViewControllers(Vi 阅读全文
posted @ 2021-06-17 13:36 一拳超人的逆袭 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.静态资源可以放置的位置: 优先级resources》static》public 2.首页的准备 直接放到public等资源包的下面然后命名为index 在template页面下的文件只能通过controller来访问 3.使用模板引擎 导入依赖 所有的东西写在templates里面 <depen 阅读全文
posted @ 2021-06-17 13:24 一拳超人的逆袭 阅读(42) 评论(0) 推荐(0) 编辑