2
私はjstl
とtaglibs
プロジェクトへの依存関係を組みこうとしています。しかしIntellij IDEA
は<c:url value="" />
タグを認識しません。Intellij IDEA jstlとtaglibsは依存関係を追加した後でも認識されません
はここに私のpom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.emusicstore</groupId>
<artifactId>emusicstore</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.3.3.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api -->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>
</project>
だここで私は<c:url..>
タグ
<title>Carousel Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
<link href="<c:url value="/resources/css/bootstrap.min.css" />" rel="stylesheet">
ここでスクリーンショットだを入れてみましたリンクのhrefラインです。パスがプレーンテキストであるかのように、<c:url >
タグと値(引用符で囲んだもの)を認識していないようです。これを引き起こしている可能性があり、どのように私はこの問題を解決することができますどのような
?
ありがとうございます。
答えてくれてありがとう。私はURLを追加する必要があるか分からなかった。私はdispatcher-servlet.xmlに を追加する必要がありました。あなたが提供した情報を書き留めます。それは有り難いです。 –
p3ace