我有以下
spring xml配置头:
xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:task="http://www.springframework.org/schema/task"
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
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
....
当我在想法中打开文件时,我看到红色错误:
1.xmlns:p =“http://www.springframework.org/schema/p –
URI is not registered
> bean标签的想法错误.
但它运作良好.
如何避免红色错误?
附:
我的xml配置中有以下片段:
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
classpath:hibernate.cfg.xml
true
${jdbc.dialect}
UTF-8
true
true
validate