我试图创建一个使用播放框架与SQL Server的应用2008这里是我的Application.conf文件:播放框架数据库脚本不working- SQL Server 2008中
db.default.driver = com.microsoft.sqlserver.jdbc.SQLServerDriver db.default.url =“jdbc:sqlserver:// localhost:1433; databaseName = DBTestPlay” db.default.user = sa db.default.password =“xxyyzz”
从浏览器中点击网址localhost:9000
后,出现以下“Database 'default' needs evolution!
”页面,点击t后他“Apply this script now
”按钮,没有任何反应。控制台显示 “! @6h0n9oh2m - Internal server error, for (GET) [/] ->
”
这里是我的模型类
package models;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import play.db.ebean.Model;
@Entity
@Table(name="t_TestUser")
public class DBUser extends Model{
@Id
public Long id;
public String name;
}
任何人都可以,请帮助我这个错误?任何建议高度赞赏蚂蚁预先感谢。我也试过了“net.sourceforge.jtds
”的驱动程序,但仍然没有运气。我试图手动应用脚本。该表在我的数据库中成功生成。但是,他们仍然要求应用这个剧本。