彈簧組件掃描找不到軟件包。我認爲我的項目目錄存在問題。我正在使用Intellij Idea。彈簧組件掃描找不到軟件包
我的applicationContext.xml
<?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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="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">
<context:component-scan base-package="" />
我的目錄;
請你詳細說明你的問題,如果它返回任何異常意味着在啓動服務器則可能是jar文件的問題好心加上「彈簧上下文3.0.3.RELEASE」罐子和嘗試它。如果它不找到註釋爲@controller的控制器,然後使用「 contex」 t:annotation-config>「上下文註解配置標籤。 –