web.xml配置context-param
发现某学生在web.xml配置
<context-param>
<param-name>dirver</param-name>
<param-value>com.mysql.jdbc.Driver</param-value>
</context-param>
<context-param>
<param-name>url</param-name>
<param-value>jdbc:mysql://localhost:3306/test</param-value>
</context-param>
<context-param>
<param-name>username</param-name>
<param-name>test</param-name>
</context-param>
<context-param>
<param-name>password</param-name>
<param-value>test</param-value>
</context-param>
报异常,解决办法,配置jndi