HTTP Status 500 - Request processing failed; nested exception is org.springframework.context.ApplicationContextException: Must define a single FreeMarkerConfig bean in this web application context (may be inherited): FreeMarkerConfigurer is the usual implementation. This bean may be given any name.; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.web.servlet.view.freemarker.FreeMarkerConfig] is defined: expected single bean but found 0
你这500,就是服务器报错了,你打个断点,进到方法中,看看哪里的问题
Must define a single FreeMarkerConfig bean in this web application context (may be inherited)
这句英文的意思是你必须在上下文中定义这个bean,你应该使用到了freeMaker模板,这个模板在spring初始化的时候,创建s失败,具体的,你再看看吧
创建单例bean失败,在容器中找不到bean的id,可能你的名字出错了,根据你的提示只能这样猜测
感谢两位的回答,是由于后台重写方法,参数不同导致的。