validationで入力チェックをやってみたく最近springに興味を持ちspring suite toolsの勉強を始めようと思ったのですが下記2点質問がございます。
初心者ですがよろしくお願いいたします。
①
下記のサイトで<context:component-scan base-package=”jp.ssie.helloworld.web”/>を挿入したところでエラーが出てしまします。
エラー内容
「Open quote is expected for attribute "base-package" associated with an element type
"context:compon
サイトURL
http://tech.pjin.jp/blog/2016/05/30/springframework4/
どこを修正すればよいでしょうか?ご教授お願いいたします。
②
主に勉強はeclipseを使用しているので簡単にインストールできるという事でstsを使う予定でしたが、
スプリングフレームワークやスプリングブートの参考書を購入してもstsの勉強に使えるのでしょうか?
上記2点よろしくお願いいたします。
当該コード <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" 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"> <!-- Uncomment and your base-package here: <context:component-scan base-package="org.springframework.samples.web"/> --> <context:component-scan base-package=”jp.ssie.helloworld.web”/> <mvc:annotation-driven /> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <!-- Example: a logical view name of 'showMessage' is mapped to '/WEB-INF/jsp/showMessage.jsp' --> <property name="prefix" value="/WEB-INF/view/"/> <property name="suffix" value=".jsp"/> </bean> </beans>
開発環境
OS windows10
エディション enterprise
言語 java8.0.1310.11
MariaDB10.1
HeidiSQL
eclipse NEON
回答1件
あなたの回答
tips
プレビュー