`
文章列表
spring中property用来存放application的设定值。 在applicationContext.xml中load进去,spring中定义了二种方式 1. 注解     spring2.5 <context:property-placeholder location="classpath*:*.properties"/>     spring3.0 <context:property-placeholder location="classpath:file1.properties,classpath:file2.p ...
Exception:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()   环境:linux+ssh+tomcat+mysq(5.1.68-log)   问题描述:有一张表itme主键id需要assigned,但是创建数据库的时候主键AUTO_INCREMENT了。在执行save的时候就造成了上述问题。   各种尝试:在测试环境测试OK,没有任何问题。但是到了生产环境就出问题?!郁闷……   问题解决 ...
void forward(ServletRequest request,ServletResponse response) forward()方法的调用有两种方式: 1.HttpServletRequest.getRequestDispatcher(url).forward(request,response) 2.ServletContext.getRequestDispatcher(url).forward(request,response) 两种方式的区别是是否可以使用 ...
Global site tag (gtag.js) - Google Analytics