备库搭建后,进入备库报错psql: FATAL:  the database system is starting up  原因:备库配置文件没有hot_standby = on   master -bash-4.1$ ps aux |grep post postgres  89707  0.0  0.0 43196188 2872 ?       Ss   00:15   0:27 postgres: wal sender process rep 10.40.55.69(26717)…
报错: You are trying to add a non-nullable field 'BookName' to BookInfo without a default; we can't do that (the database needs something to populate existing rows). Please select a fix: 1) Provide a one-off default now (will be set on all existing row…
论坛上有另外一篇更全面的帖子,jinnianshilongnian写的:http://www.iteye.com/topic/1120924 本文的环境是:  spring-framework-3.1.0  hibernate-4.1.6  junit-4.10  这里大部分是参考我以前熟悉的配置方法,只是把hibernate3升级到hibernate4,其实差不了很多,只要注意几个要点:  1.以前集成hibernate3和spring的时候,spring的ORM包里提供了HibernateS…
报错信息:Session has not been configured for this application or request 解决方案:在Startup.cs文件中的Configure方法中加上这一句代码: app.UseSession(); 进行注册即可.…
报错信息:Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket' -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.把idea升级到最新版本或者把maven降级到3.1.1就好了…
在intellij使用 Maven Project 测试时,运行test时看到log里的报错信息: -Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match. 经查证,是Maven版本与 Intellij 兼容的问题,现在使用的版本是: Maven apache-maven-3.3.9-bin.zip Intell…
先看具体日志: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name of URL [jar:-SNAPSHOT.jar!/BOOT-INF/c…
完成warning和报错信息如下. 通过报错信息提示,锁定cwebp-bin,在waring中发现有提示说要更新至7或更高版本. 解决方案:在package.json中,将cwebp-bin设置版本为:"cwebp-bin": "^7.0.0". 再运行yarn,就不报错了. warning package-lock.json found. Your project contains lock files generated by tools other than…
在对程序进行了一些修改后,运行发现spring报了这个错误,这是由于我设置了一个@Scope("session")导致的,现记录下解决方法. 解决方法: 将Scope设置为scope="session"需要在web.xml中做一下设置打开session机制: <!-- 开启Session机制 --><listener> <listener-class>org.springframework.web.context.request.…
在编写一个Hibernate4集成spring4的小demo的时候出现了该错误: org.hibernate.HibernateException: No Session found for current thread at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:106) at org.hibernate.internal.SessionF…