请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

翔仔老师,帮我解决一下我的手残问题。难受。

老师,今天在搞js文件加载的时候出现了加载不了的问题。在解决过程中我误把resources给移动了。
图片描述
当我再移动回去后,就无法访问HTML文件。就报了以下错误。
图片描述

图片描述
在网上寻找了方法,但都没有解决。希望老师,看到后能给我回复,谢谢。

正在回答 回答被采纳积分+3

1回答

翔仔 2019-12-31 22:21:45

同学好,请问是报啥异常呀,我看有打红叉的,同学可以选择Eclipse上方的rebuild project重建一下项目,然后右键项目,update maven project,之后右键tomcat,clean一下,重新发布一下,去除浏览器缓存,再访问试试?此外,提前祝同学新年快乐:)

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_一半一伴_0 #1
    老师,你给的方法不行。所有的HTML文件都无法放问。而且现在两个配置文件有红叉(spring-dao.xml和spring-service.xml)。给出这样的提示:Multiple annotations found at this line:
    	- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-
    	 placeholder'.
    	- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context.xsd', 
    	 because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    回复 有任何疑惑可以回复我~ 2020-01-01 13:42:37
  • 翔仔 回复 提问者 qq_一半一伴_0 #2
    还有一个方法就是tomcat启动之后,在控制台会打印出你项目实际发布的路径,去到路径下面去看看,有没有在对应路径下找到你的html文件,以及看看你的ShopAdminController有没有配置上shopoperation的打开路径
    	@RequestMapping(value = "/shopoperation")
    	public String shopOperation() {
    		// 转发至店铺注册/编辑页面
    		return "shop/shopoperation";
    	}
    回复 有任何疑惑可以回复我~ 2020-01-02 01:25:59
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号