SpringBoot中js网页无法跳转
2020-03-26 本文已影响0人
义无反顾00
第一种情况:首先先确认可以访问通过localhost:端口号/ 的方式来访问网页。
解决方法:spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/
在配置文件中加入注解。
第二种情况:

第三种情况:
IE默认按钮的类型是"button",而在其他浏览器是为"submit",因此要将button移出from表单外面