错误记录,在学习时碰到spring读取properties时读取错误data source的properties引入文件

发现原因是因为xsd文件错误,将xsd文件换成以下内容:

<?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-3.0.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.0.xsd">

posted @ 2017-04-04 19:21  zhidian  阅读(179)  评论(0编辑  收藏  举报