0

私のプロジェクトでは、jsp フォームに「WEB-INF/fl」に配置された swf オブジェクトが含まれています。プロジェクトを公開すると、swf オブジェクトの「url mapping not found」エラーが発生します。ローカル コンテンツを利用できるようにするにはどうすればよいですか?

私の ViewResolver Bean:

<context:component-scan base-package="com.udb.common.controllers" />

<bean 
    class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix">
        <value>/WEB-INF/pages/</value>
    </property>
    <property name="suffix">
        <value>.jsp</value>
    </property>
</bean>

コントローラ クラス:

@Controller
public class LoginController{


    @RequestMapping(value="/welcome",method=RequestMethod.GET)
    public String printWelcome(ModelMap map, Principal principal){

        String name = principal.getName();
        map.addAttribute("username", name);
        map.addAttribute("message", "Spring Security Custom Form Exmple");


        return "hello";

    }

しかし、サーバーでプロジェクトを公開すると、以下のエラーが発生します:

Dec 30, 2011 3:49:29 AM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/security/param.swf] in DispatcherServlet with name 'mvc-dispatcher'
4

1 に答える 1

1

タグを使用して静的コンテンツを提供するには

<mvc:resources mapping="/security/**" location="/fl/" />
于 2011-12-30T03:23:14.603 に答える