摘要:
web.xml配置文件代码: <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext*.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-c 阅读全文
摘要:
1.mysqldialect:org.hibernate.dialect.MySQLDialect驱动名称:com.mysql.jdbc.Driver连接字符串jdbc:mysql://localhost/dbName2.postgresdialect:org.hibernate.dialect.PostgreSQLDialect驱动名称:org.postgresql.Driver连接字符串:jdbc:postgresql://127.0.0.1:5432/dbName3.sqlserverdialect:org.hibernate.dialect.SQLServerDialect驱动名称:c 阅读全文
摘要:
1.页面自动跳转:<meta http-equiv="refresh" content="0.1;url=login/login_toLogin.action">2.jsp中获取项目名(得到"/myProjectName"):<%=request.getContextPath()%> 阅读全文