常见问题记录

1.displaytag 点击排序后 列表乱码  修改server.xml

 

  <Connector connectionTimeout="20000" port="8084" protocol="HTTP/1.1" 
redirectPort="8443"  URIEncoding="utf-8"/>
  
 

2.递归查找数据,数据库报错

 

  at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:261)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)

  修改数据库链接

  将oracle链接

 

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" 
destroy-method="close">
 

    改为

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" 
destroy-method="close">

  3. <c:out>不对XML进行转义

 

 <c:out value="${emp.ryfl}" escapeXml="false"/>

  4.unix下报permission denied

      输入命令 

     chmod -R 777  filename

 

你可能感兴趣的:(java,oracle,bean,xml,jdbc)