看看你的服务器是否已经加入了你的新的DRIVER,
比如你用的要是COMCAT,你就应该在你的CONF文件夹下打开SERVER.XML.加入下面的新的DRIVER:
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"//这里是你的新的DRIVER.
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL?user=scott;password=tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
比如你用的要是COMCAT,你就应该在你的CONF文件夹下打开SERVER.XML.加入下面的新的DRIVER:
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"//这里是你的新的DRIVER.
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL?user=scott;password=tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
我也问过这个问题,希望对你有帮助不过我还是没弄好,楼主要是弄好了拜托在这里说明一下。谢谢
但是连接数据库出了问题:
url=“jdbc:microsoft:sqlserver://doudou:1433;DatabaseName=master;User=sa;Password=070825”
有什么不妥的吗???