Spring初始化数据库

来源:互联网 发布:嵌入式编程入门 编辑:程序博客网 时间:2024/05/18 20:06
xmlns:jdbc="http://www.springframework.org/schema/jdbc"xsi:schemaLocation=http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd " default-lazy-init="true"    <!--初始化必要的数据-->    <jdbc:initialize-database data-source="dataSource" ignore-failures="ALL">        <jdbc:script location="classpath:payTypeInit.sql" />    </jdbc:initialize-database>

一定要注意文件编码!!!

一定要注意文件编码!!!

一定要注意文件编码!!!

0 0
原创粉丝点击