经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » Java相关 » Java » 查看文章
javaweb之jsp指令
来源:cnblogs  作者:miao1122334  时间:2018/10/21 20:30:32  对本文有异议

1.JSP指令简介

JSP指令是为JSP引擎设计的,它们并不直接产生任何可见输出,而只是告诉引擎如何处理JSP页面中的其余部分。

在JSP 2.0规范中共定义了三个指令:page指令,Include指令,taglib指令。

JSP指令的基本语法格式:<%@ 指令 属性名="值" %>

例如:

  1. <%@ page contentType="text/html;charset=gb2312"%>

如果一个指令有多个属性,这多个属性可以写在一个指令中,也可以分开写。

例如:

  1. <%@ page contentType="text/html;charset=gb2312"%>
  2. <%@ page import="java.util.Date"%>

也可以写作:

  1. <%@ page contentType="text/html;charset=gb2312" import="java.util.Date"%>

2.page指令

page指令用于定义JSP页面的各种属性,无论page指令出现在JSP页面中的什么地方,它作用的都是整个JSP页面,为了保持程序的可读性和遵循良好的编程习惯,page指令最好是放在整个JSP页面的起始位置。

JSP 2.0规范中定义的page指令的完整语法:

  1. <%@ page
  2. [ language="java" ]
  3. [ extends="package.class" ]
  4. [ import="{package.class | package.*}, ..." ]
  5. [ session="true | false" ]
  6. [ buffer="none | 8kb | sizekb" ]
  7. [ autoFlush="true | false" ]
  8. [ isThreadSafe="true | false" ]
  9. [ info="text" ]
  10. [ errorPage="relative_url" ]
  11. [ isErrorPage="true | false" ]
  12. [ contentType="mimeType [ ;charset=characterSet ]" | "text/html ; charset=ISO-8859-1" ]
  13. [ pageEncoding="characterSet | ISO-8859-1" ]
  14. [ isELIgnored="true | false" ]
  15. %>

2.1 import属性

在jsp页面中,jsp引擎会自动导入下面的包和类:

 java.lang.*

 javax.servlet.*

 javax.servlet.jsp.*

 javax.servlet.http.*

可以在一条page指令引入多个类和包,其中的每个包和类之间使用逗号分隔开,例如,

  1. <%@ page import="java.util.Date,java.sql.*,java.io.*"%>

2.2 errorPage属性

  • errorPage属性的设置值必须使用相对路径,如果以“/”开头,表示相对于当前Web应用程序的根目录(注意不是站点根目录),否则,表示相对于当前页面。
  • 可以在web.xml文件中使用<error-page>元素为整个Web应用程序设置错误处理页面。
  • <error-page>元素有3个子元素,<error-code>、<exception-type>、<location>
  • <error-code>子元素指定错误的状态码,例如:<error-code>404</error-code>
  • <exception-type>子元素指定异常类的完全限定名,例如:<exception-type>java.lang.ArithmeticException</exception-type>
  • <location>子元素指定以“/”开头的错误处理页面的路径,例如:<location>/ErrorPage/404Error.jsp</location>
  • 如果设置了某个JSP页面的errorPage属性,那么在web.xml文件中设置的错误处理将不对该页面起作用。

 jsperrorPage的相对路径,“/”表示当前web应用程序的根目录(WebRoot),“./”代表当前目录(即当前文件所在的目录),“../”代表当前文件所在目录的上一级目录。

例如有以下的工程目录结构:

testA.jsp中page指令的errorPage路径为:

  1. <%@ page import="java.util.Date" errorPage="/jspTest/error.jsp"%>

 即路径"/jspTest/error.jsp"为“WebRoot/jspTest/error.jsp”。

使用errorPage属性可以指明出错后跳转的错误页面,比如如下的testA.jsp代码:

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="java.util.Date" errorPage="/jspTest/error.jsp"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7.  
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <base href="<%=basePath%>">
  12. <title>My JSP 'testA.jsp' starting page</title>
  13. <meta http-equiv="pragma" content="no-cache">
  14. <meta http-equiv="cache-control" content="no-cache">
  15. <meta http-equiv="expires" content="0">
  16. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  17. <meta http-equiv="description" content="This is my page">
  18. <!--
  19. <link rel="stylesheet" type="text/css" href="styles.css">
  20. -->
  21.  
  22. </head>
  23. <body>
  24. <%
  25. int i=2/0;
  26. %>
  27. </body>
  28. </html>

 int i=2/0,显然出错,第二行page指令的errorPage属性<%@ page import="java.util.Date" errorPage="/jspTest/error.jsp"%>指明出错后跳转到error.jsp文件,error.jsp的内容为:

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page import="java.io.PrintWriter" %>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  6. %>
  7.  
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <base href="<%=basePath%>">
  12. <title>My JSP 'error.jsp' starting page</title>
  13. <meta http-equiv="pragma" content="no-cache">
  14. <meta http-equiv="cache-control" content="no-cache">
  15. <meta http-equiv="expires" content="0">
  16. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  17. <meta http-equiv="description" content="This is my page">
  18. <!--
  19. <link rel="stylesheet" type="text/css" href="styles.css">
  20. -->
  21.  
  22. </head>
  23. <body>
  24. <%
  25. PrintWriter outs=response.getWriter();
  26. outs.write("出错啦!");
  27. %>
  28. </body>
  29. </html>

运行结果如下:

2.3 在web.xml中使用<error-page>标签为整个web应用设置错误处理页面

例如,使用<error-page>标签配置针对404错误的处理页面,在web.xml中的配置如下:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="3.0"
  3. xmlns="http://java.sun.com/xml/ns/javaee"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  6. http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
  7. <display-name></display-name>
  8. <welcome-file-list>
  9. <welcome-file>index.jsp</welcome-file>
  10. </welcome-file-list>
  11. <!-- 针对404错误的处理页面 -->
  12. <error-page>
  13. <error-code>404</error-code>
  14. <location>/jspTest/error.jsp</location>
  15. </error-page>
  16. </web-app>

要跳转的error.jsp的代码如下:

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <html>
  3. <head>
  4. <title>404错误友好提示页面</title>
  5. <!-- 3秒钟后自动跳转回首页 -->
  6. <meta http-equiv="refresh" content="3;url=${pageContext.request.contextPath}/WEB-INF/index.jsp">
  7. </head>
  8. <body>
  9. <p>404错误</p>
  10. <br/>
  11. 3秒钟后自动跳转回首页,如果没有跳转,请点击<a href="${pageContext.request.contextPath}/index.jsp">这里</a>
  12. </body>
  13. </html>

当访问一个不存在的web资源时,就会跳转到在web.xml中配置的404错误处理页面error.jsp

2.4 使用isErrorPage属性显示声明页面为错误

如果某一个jsp页面是作为系统的错误处理页面,那么建议将page指令的isErrorPage属性(默认为false)设置为“true”来显示声明这个jsp页面是一个错误处理页面。将error.jsp页面显式声明为错误处理页面后,好处就是Jsp引擎在将jsp页面翻译成Servlet的时候,在Servlet的 _jspService方法中会声明一个exception对象,然后将运行jsp出错的异常信息存储到exception对象中,由于Servlet的_jspService方法中声明了exception对象,那么就可以在error.jsp页面中使用exception对象,这样就可以在Jsp页面中拿到出错的异常信息了。如果没有设置isErrorPage="true",那么在jsp页面中是无法使用exception对象的。

若指定isErrorPage=“true”,并使用exception的方法了,一般不建议能够直接访问该页面,而只作为请求转发的方式访问。

Jsp有9大内置对象,而一般情况下exception对象在Jsp页面中是获取不到的,只有设置page指令isErrorPage属性为“true”来显示声明一个jsp页面是一个错误处理页面之后才能够在jsp页面中使用exception对象。

3.include指令

在JSP中对于包含有两种语句形式:@include指令和<jsp:include>指令

3.1 @include指令

include指令用于引入其它JSP页面,如果使用include指令引入了其它JSP页面,那么JSP引擎将把这两个JSP翻译成一个servlet。所以include指令引入通常也称之为静态引入。

语法:<%@ include file="relativeURL"%>,其中的file属性用于指定被引入文件的路径。路径以“/”开头,表示代表当前web应用。

例如:

includeTest1.jsp

  1. <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
  2. <%
  3. String path1 = request.getContextPath();
  4. String basePath1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path1+"/";
  5. %>
  6.  
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <base href="<%=basePath1%>">
  11. <title>My JSP 'includeTest.jsp' starting page</title>
  12. <meta http-equiv="pragma" content="no-cache">
  13. <meta http-equiv="cache-control" content="no-cache">
  14. <meta http-equiv="expires" content="0">
  15. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  16. <meta http-equiv="description" content="This is my page">
  17. <!--
  18. <link rel="stylesheet" type="text/css" href="styles.css">
  19. -->
  20.  
  21. </head>
  22. <body>
  23. <h2>"includeTest1.jsp's content"</h2>
  24. <%@ include file="includeTest2.jsp" %>
  25. </body>
  26. </html>

 includeTest2.jsp

  1. <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  5. %>
  6.  
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <base href="<%=basePath%>">
  11. <title>My JSP 'includeTest2.jsp' starting page</title>
  12. <meta http-equiv="pragma" content="no-cache">
  13. <meta http-equiv="cache-control" content="no-cache">
  14. <meta http-equiv="expires" content="0">
  15. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  16. <meta http-equiv="description" content="This is my page">
  17. <!--
  18. <link rel="stylesheet" type="text/css" href="styles.css">
  19. -->
  20.  
  21. </head>
  22. <body>
  23. <h2>"includeTest2.jsp's content"</h2>
  24. </body>
  25. </html>

 includeTest1.jsp使用<%@ include file="includeTest2.jsp" %>将includeTest2.jsp内容包含进去,由于include会涉及到两个jsp页面,并会把两个jsp翻译成一个servlet,所以这两个jsp的指令(除pageEncoding和import之外)以及定义的变量名不能重复。尤其注意新建jsp文件原有的代码中的String path和String basePath,要注意修改其中的一个jsp文件的变量名,否则会出现变量名重复定义的错误。如下就是include includeTest2.jsp之后转换成的includeTest1_jsp类的源代码。

  1. /*
  2. * Generated by the Jasper component of Apache Tomcat
  3. * Version: Apache Tomcat/8.5.9
  4. * Generated at: 2018-10-20 13:08:44 UTC
  5. * Note: The last modified time of this file was set to
  6. * the last modified time of the source file after
  7. * generation to assist with modification tracking.
  8. */
  9. package org.apache.jsp.jspTest;
  10.  
  11. import javax.servlet.*;
  12. import javax.servlet.http.*;
  13. import javax.servlet.jsp.*;
  14. import java.util.*;
  15. import java.util.*;
  16.  
  17. public final class includeTest1_jsp extends org.apache.jasper.runtime.HttpJspBase
  18. implements org.apache.jasper.runtime.JspSourceDependent,
  19. org.apache.jasper.runtime.JspSourceImports {
  20.  
  21. private static final javax.servlet.jsp.JspFactory _jspxFactory =
  22. javax.servlet.jsp.JspFactory.getDefaultFactory();
  23.  
  24. private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
  25.  
  26. static {
  27. _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
  28. _jspx_dependants.put("/jspTest/includeTest2.jsp", Long.valueOf(1540040843018L));
  29. }
  30.  
  31. private static final java.util.Set<java.lang.String> _jspx_imports_packages;
  32.  
  33. private static final java.util.Set<java.lang.String> _jspx_imports_classes;
  34.  
  35. static {
  36. _jspx_imports_packages = new java.util.HashSet<>();
  37. _jspx_imports_packages.add("javax.servlet");
  38. _jspx_imports_packages.add("java.util");
  39. _jspx_imports_packages.add("javax.servlet.http");
  40. _jspx_imports_packages.add("javax.servlet.jsp");
  41. _jspx_imports_classes = null;
  42. }
  43.  
  44. private volatile javax.el.ExpressionFactory _el_expressionfactory;
  45. private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;
  46.  
  47. public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
  48. return _jspx_dependants;
  49. }
  50.  
  51. public java.util.Set<java.lang.String> getPackageImports() {
  52. return _jspx_imports_packages;
  53. }
  54.  
  55. public java.util.Set<java.lang.String> getClassImports() {
  56. return _jspx_imports_classes;
  57. }
  58.  
  59. public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
  60. if (_el_expressionfactory == null) {
  61. synchronized (this) {
  62. if (_el_expressionfactory == null) {
  63. _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
  64. }
  65. }
  66. }
  67. return _el_expressionfactory;
  68. }
  69.  
  70. public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
  71. if (_jsp_instancemanager == null) {
  72. synchronized (this) {
  73. if (_jsp_instancemanager == null) {
  74. _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  75. }
  76. }
  77. }
  78. return _jsp_instancemanager;
  79. }
  80.  
  81. public void _jspInit() {
  82. }
  83.  
  84. public void _jspDestroy() {
  85. }
  86.  
  87. public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
  88. throws java.io.IOException, javax.servlet.ServletException {
  89.  
  90. final java.lang.String _jspx_method = request.getMethod();
  91. if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
  92. response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
  93. return;
  94. }
  95.  
  96. final javax.servlet.jsp.PageContext pageContext;
  97. javax.servlet.http.HttpSession session = null;
  98. final javax.servlet.ServletContext application;
  99. final javax.servlet.ServletConfig config;
  100. javax.servlet.jsp.JspWriter out = null;
  101. final java.lang.Object page = this;
  102. javax.servlet.jsp.JspWriter _jspx_out = null;
  103. javax.servlet.jsp.PageContext _jspx_page_context = null;
  104.  
  105.  
  106. try {
  107. response.setContentType("text/html;charset=ISO-8859-1");
  108. pageContext = _jspxFactory.getPageContext(this, request, response,
  109. null, true, 8192, true);
  110. _jspx_page_context = pageContext;
  111. application = pageContext.getServletContext();
  112. config = pageContext.getServletConfig();
  113. session = pageContext.getSession();
  114. out = pageContext.getOut();
  115. _jspx_out = out;
  116.  
  117. out.write('\r');
  118. out.write('\n');
  119.  
  120. String path1 = request.getContextPath();
  121. String basePath1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path1+"/";
  122.  
  123. out.write("\r\n");
  124. out.write("\r\n");
  125. out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
  126. out.write("<html>\r\n");
  127. out.write(" <head>\r\n");
  128. out.write(" <base href=\"");
  129. out.print(basePath1);
  130. out.write("\">\r\n");
  131. out.write(" \r\n");
  132. out.write(" <title>My JSP 'includeTest.jsp' starting page</title>\r\n");
  133. out.write(" \r\n");
  134. out.write("\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n");
  135. out.write("\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
  136. out.write("\t<meta http-equiv=\"expires\" content=\"0\"> \r\n");
  137. out.write("\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n");
  138. out.write("\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n");
  139. out.write("\t<!--\r\n");
  140. out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
  141. out.write("\t-->\r\n");
  142. out.write("\r\n");
  143. out.write(" <script>\"undefined\"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:\"51550\",secure:\"51555\"},c={nonSecure:\"http://\",secure:\"https://\"},r={nonSecure:\"127.0.0.1\",secure:\"gapdebug.local.genuitec.com\"},n=\"https:\"===window.location.protocol?\"secure\":\"nonSecure\";script=e.createElement(\"script\"),script.type=\"text/javascript\",script.async=!0,script.src=c[n]+r[n]+\":\"+t[n]+\"/codelive-assets/bundle.js\",e.getElementsByTagName(\"head\")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>\r\n");
  144. out.write(" \r\n");
  145. out.write(" <body data-genuitec-lp-enabled=\"false\" data-genuitec-file-id=\"wc1-8\" data-genuitec-path=\"/MyWebProject/WebRoot/jspTest/includeTest1.jsp\">\r\n");
  146. out.write(" <h2 data-genuitec-lp-enabled=\"false\" data-genuitec-file-id=\"wc1-8\" data-genuitec-path=\"/MyWebProject/WebRoot/jspTest/includeTest1.jsp\">\"includeTest1.jsp's content\"</h2>\r\n");
  147. out.write(" ");
  148. out.write('\r');
  149. out.write('\n');
  150.  
  151. String path = request.getContextPath();
  152. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  153.  
  154. out.write("\r\n");
  155. out.write("\r\n");
  156. out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
  157. out.write("<html>\r\n");
  158. out.write(" <head>\r\n");
  159. out.write(" <base href=\"");
  160. out.print(basePath);
  161. out.write("\">\r\n");
  162. out.write(" \r\n");
  163. out.write(" <title>My JSP 'includeTest2.jsp' starting page</title>\r\n");
  164. out.write(" \r\n");
  165. out.write("\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n");
  166. out.write("\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
  167. out.write("\t<meta http-equiv=\"expires\" content=\"0\"> \r\n");
  168. out.write("\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n");
  169. out.write("\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n");
  170. out.write("\t<!--\r\n");
  171. out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
  172. out.write("\t-->\r\n");
  173. out.write("\r\n");
  174. out.write(" <script>\"undefined\"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:\"51550\",secure:\"51555\"},c={nonSecure:\"http://\",secure:\"https://\"},r={nonSecure:\"127.0.0.1\",secure:\"gapdebug.local.genuitec.com\"},n=\"https:\"===window.location.protocol?\"secure\":\"nonSecure\";script=e.createElement(\"script\"),script.type=\"text/javascript\",script.async=!0,script.src=c[n]+r[n]+\":\"+t[n]+\"/codelive-assets/bundle.js\",e.getElementsByTagName(\"head\")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>\r\n");
  175. out.write(" \r\n");
  176. out.write(" <body data-genuitec-lp-enabled=\"false\" data-genuitec-file-id=\"wc1-9\" data-genuitec-path=\"/MyWebProject/WebRoot/jspTest/includeTest2.jsp\">\r\n");
  177. out.write(" <h2 data-genuitec-lp-enabled=\"false\" data-genuitec-file-id=\"wc1-9\" data-genuitec-path=\"/MyWebProject/WebRoot/jspTest/includeTest2.jsp\">\"includeTest2.jsp's content\"</h2>\r\n");
  178. out.write(" </body>\r\n");
  179. out.write("</html>\r\n");
  180. out.write("\r\n");
  181. out.write(" </body>\r\n");
  182. out.write("</html>\r\n");
  183. } catch (java.lang.Throwable t) {
  184. if (!(t instanceof javax.servlet.jsp.SkipPageException)){
  185. out = _jspx_out;
  186. if (out != null && out.getBufferSize() != 0)
  187. try {
  188. if (response.isCommitted()) {
  189. out.flush();
  190. } else {
  191. out.clearBuffer();
  192. }
  193. } catch (java.io.IOException e) {}
  194. if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
  195. else throw new ServletException(t);
  196. }
  197. } finally {
  198. _jspxFactory.releasePageContext(_jspx_page_context);
  199. }
  200. }
  201. }

可以看到,includeTest1.jsp和includeTest2.jsp页面的内容都使用out.write输出到浏览器了。运行includeTest1.jsp后,显示如下的结果:

使用@include可以包含任意的内容,文件的后缀是什么都无所谓。这种把别的文件内容包含到自身页面的@include语句就叫作静态包含,作用只是把别的页面内容包含进来,属于静态包含。

3.2 jsp:include指令

接jsp标签。

 

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号