1、刚开始执行init-data.bat报的错误

jeesite4.0连接sql server 2008 r2_2008 r2jeesite4.0连接sql server 2008 r2_2008 r2_02

2、执行InitCoreData.java报的错误

org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]


3、解决办法

3.1最好配置一下新的jdbc驱动,不用配置也可以。如下图:

jeesite4.0连接sql server 2008 r2_sql _03

3.1修改application.yml

jeesite4.0连接sql server 2008 r2_2008 r2_04


4、初始化sql server数据库

打开bin文件夹,执行init-data.bat等待执行完成即可。如下图:

jeesite4.0连接sql server 2008 r2_server _05