threecat-up 3 years ago
parent 7b14bfe3b9
commit c64b580fb3

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

@ -0,0 +1,19 @@
<component name="ArtifactManager">
<artifact type="exploded-war" name="BookStore:war exploded">
<output-path>$PROJECT_DIR$/out/artifacts/BookStore_war_exploded</output-path>
<root id="root">
<element id="directory" name="WEB-INF">
<element id="directory" name="classes">
<element id="module-output" name="BookStore" />
</element>
<element id="directory" name="lib">
<element id="library" level="project" name="taglibs-standard-impl-1.2.1" />
<element id="library" level="project" name="junit-4.12" />
<element id="library" level="project" name="commons-beanutils-1.8.0" />
<element id="library" level="project" name="gson-2.2.4" />
</element>
</element>
<element id="javaee-facet-resources" facet="BookStore/web/Web" />
</root>
</artifact>
</component>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="book@localhost" uuid="75238d60-f077-4e65-b114-7c69501cbde6">
<driver-ref>mysql.8</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306/book</jdbc-url>
<driver-properties>
<property name="serverTimezone" value="UTC" />
</driver-properties>
</data-source>
</component>
</project>

@ -0,0 +1,19 @@
<component name="libraryTable">
<library name="commons-beanutils-1.8.0">
<CLASSES>
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/commons-beanutils-1.8.0.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/commons-dbutils-1.3.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/commons-logging-1.1.1.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/druid-1.1.9.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/gson-2.2.4.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/hamcrest-core-1.3.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/junit-4.12.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/kaptcha-2.3.2.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/taglibs-standard-impl-1.2.1.jar!/" />
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/taglibs-standard-spec-1.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="commons-dbutils-1.3">
<CLASSES>
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/commons-dbutils-1.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -0,0 +1,10 @@
<component name="libraryTable">
<library name="jquery-3.1.1">
<CLASSES>
<root url="jar://$PROJECT_DIR$/web/WEB-INF/lib/jquery-3.1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="jar://$PROJECT_DIR$/web/WEB-INF/lib/jquery-3.1.1.jar!/" recursive="false" />
</library>
</component>

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="servlet-api">
<CLASSES>
<root url="jar://$PROJECT_DIR$/../../tomcat9/apache-tomcat-9.0.35/lib/servlet-api.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/BookStore.iml" filepath="$PROJECT_DIR$/BookStore.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -19,10 +19,10 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 9.0.35" level="application_server_libraries" />
<orderEntry type="library" name="taglibs-standard-impl-1.2.1" level="project" />
<orderEntry type="library" name="junit-4.12" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat9" level="application_server_libraries" />
<orderEntry type="library" name="commons-beanutils-1.8.0" level="project" />
<orderEntry type="library" name="gson-2.2.4" level="project" />
<orderEntry type="library" name="servlet-api" level="project" />
<orderEntry type="library" name="commons-dbutils-1.3" level="project" />
<orderEntry type="library" name="jquery-3.1.1" level="project" />
</component>
</module>

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<descriptors>
<deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/web/WEB-INF/web.xml" />
</descriptors>
<webroots>
<root url="file://$MODULE_DIR$/web" relative="/" />
</webroots>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 9.0.35" level="application_server_libraries" />
<orderEntry type="library" name="taglibs-standard-impl-1.2.1" level="project" />
<orderEntry type="library" name="junit-4.12" level="project" />
<orderEntry type="library" name="commons-beanutils-1.8.0" level="project" />
<orderEntry type="library" name="gson-2.2.4" level="project" />
</component>
</module>

@ -112,12 +112,12 @@
<location>/pages/error/error404.jsp</location>
</error-page>
<error-page>
<!-- error-code是错误类型-->
<!--<error-page>
&lt;!&ndash; error-code是错误类型&ndash;&gt;
<error-code>500</error-code>
<!-- location标签表示要跳转去的页面路径-->
&lt;!&ndash; location标签表示要跳转去的页面路径&ndash;&gt;
<location>/pages/error/error500.jsp</location>
</error-page>
</error-page>-->
</web-app>

@ -11,6 +11,5 @@
<a href="manager/orderServlet?action=orders">订单管理</a>
<a href="manager/UserServlet?action=page">用户管理</a>
<a href="manager/orderServlet?action=showTotal">总账单</a>
<a href="index.jsp">返回书店
</a>
<a href="index.jsp">返回书店</a>
</div>

@ -7,9 +7,7 @@
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div id="page_nav">
<a href="${requestScope.page.url}&pageNo=1">首页</a>
<c:if test="${requestScope.page.pageNo>1}">
<a href="${requestScope.page.url}&pageNo=${requestScope.page.pageNo-1}">上一页</a>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save