2017-04-13 6 views
0

spring mvcとhibernateを使用してE-musicstoreアプリケーションを開発しています。header.jspファイルをViewproductList.Jspファイルに追加しました。私のブートストラップスタイルが私のspring mvcアプリケーションでうまくレンダリングされていません

私のディスパッチャサーブレット構成は

これは、ブラウザに表示さ

+0

設定ファイルの内容を画像として表示するのではなく、テキストとして送信してください(スクリーンショット)。スクリーンショットのテキストは読めません。 – Jesper

答えて

0
<?xml version="1.0" encoding="UTF-8"?> 
<beans:beans xmlns="http://www.springframework.org/schema/mvc" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:beans="http://www.springframework.org/schema/beans" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd 
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> 

    <!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure --> 

    <!-- Enables the Spring MVC @Controller programming model --> 
    <annotation-driven /> 

    <!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory --> 
    <resources mapping="/resources/**" location="/resources/" /> 

    <!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory --> 
    <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> 
     <beans:property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> 
     <beans:property name="prefix" value="/WEB-INF/views/" /> 
     <beans:property name="suffix" value=".jsp" /> 
    </beans:bean> 

    <!-- Interceptor --> 


    <context:component-scan base-package="com.mymusic" /> 

</beans:beans> 

これを試してみてくださいどのように...あなたが同じ問題に直面した場合、attatchしてくださいは、あなたのブラウザーのNETWORK HTTP情報を見ることができるタブ。

関連する問題