1. Why does hibernate not automatically build a table? You
only need to add
<property name="hbm2ddl.auto">update</property> to hibernate to build a table
. The reason why I make an error is that hbm2ddl.auto is written as hbm2dll.auto 2. When testing struts, after deploying tomcat, the
corresponding jsp page is not displayed, but an exception
java.lang.NoClassDefFoundError: org/apache/commons/lang3 is reported. The
solution: commons-lang3- is missing in our project 3.4.jar, you only need to add this jar package and redeploy to solve this problem
3. After adding a listener when integrating struts2 and spring, run tomcat and report an exception
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
After inspection, it was found that
<context:property-placeholder location="classpath:jdbc.properties"/> did not add classpath in the external properties file loaded in applicationContext.xml: which led to the failure of the experiment
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326987162&siteId=291194637
Ranking