正在回答 回答被采纳积分+1
悲催啊,还是不行,控制台打印的代码如下:
十月 11, 2019 12:02:35 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十月 11, 2019 12:02:35 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十月 11, 2019 12:02:35 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 327 ms
十月 11, 2019 12:02:35 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十月 11, 2019 12:02:35 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.96
十月 11, 2019 12:02:36 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [675] milliseconds.
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.96\webapps\docs
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-7.0.96\webapps\docs has finished in 52 ms
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.96\webapps\examples
十月 11, 2019 12:02:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十月 11, 2019 12:02:36 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十月 11, 2019 12:02:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@1e27dc4')
十月 11, 2019 12:02:36 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@8064a9')
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-7.0.96\webapps\examples has finished in 161 ms
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.96\webapps\host-manager
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-7.0.96\webapps\host-manager has finished in 39 ms
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.96\webapps\manager
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-7.0.96\webapps\manager has finished in 37 ms
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.96\webapps\ROOT
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\apache-tomcat-7.0.96\webapps\ROOT has finished in 32 ms
十月 11, 2019 12:02:36 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十月 11, 2019 12:02:36 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十月 11, 2019 12:02:36 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1416 ms
aaa:123
十月 11, 2019 12:02:43 下午 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
十月 11, 2019 12:02:43 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
十月 11, 2019 12:02:43 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge15xa51fbqrz8ka5lxh|375c2a, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge15xa51fbqrz8ka5lxh|375c2a, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:///shop?useUnicode=true&characterEncoding=UTF8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
[Category [cid=1, cname=人物画, cdesc=描述人物的画], Category [cid=2, cname=风景画, cdesc=风景画], Category [cid=3, cname=动物画, cdesc=描述动物的画]]
同学你好。可以尝试以下几步:
1、先清除缓存
1)将Tomcat停下,将曾经add进去的项目重新remove出来,然后在Tomcat上右键选择clean...
2)在Eclipse的头部导航中选择Project->clean...
3)然后在浏览器中使用Ctrl+Shift+Delete 清除缓存。将项目重新add到Tomcat中重启项目
2、在Chrome浏览器内的乱码页面上右键,选择查看网页源代码,或者使用快捷键Ctrl+U。看一下里面的编码方式是否为utf-8。
3、如果除了这个链接,其他都不乱码,把这个页面备份一下,删除后重新建一个jsp,然后把之前内容拷贝过来后保存。
如果解答了同学的疑问,望采纳~
祝学习愉快~
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<!-- Mirrored from admindesigns.com/demos/absolute/1.1/admin_forms-validation.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Aug 2015 02:56:15 GMT -->
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<title>油画商城--分类列表</title>
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath }/assets/skin/default_skin/css/theme.css">
<link rel="stylesheet" type="text/css"
href="${pageContext.request.contextPath }/assets/admin-tools/admin-forms/css/admin-forms.css">
<link rel="shortcut icon"
href="${pageContext.request.contextPath }/assets/img/favicon.ico">
</head>
<body class="admin-validation-page" data-spy="scroll"
data-target="#nav-spy" data-offset="200">
<div id="main">
<%@ include file="header.jsp"%>
<%@ include file="left.jsp"%>
<section id="content_wrapper">
<section id="content" class="table-layout animated fadeIn">
<div class="tray tray-center">
<div class="content-header">
<h2>分类列表</h2>
<p class="lead"></p>
</div>
<div class="admin-form theme-primary mw1000 center-block"
style="padding-bottom: 175px;">
<div class="panel heading-border">
<div class="panel-menu">
<div class="row">
<div class="hidden-xs hidden-sm col-md-3">
<div class="btn-group">
<button type="button" class="btn btn-default light">
<i class="fa fa-refresh"></i>
</button>
<button type="button" class="btn btn-default light">
<i class="fa fa-trash"></i>
</button>
<button type="button" class="btn btn-default light">
<i class="fa fa-plus"
onclick="javascript:window.location.href='/employee/to_add';"></i>
</button>
</div>
</div>
<div class="col-xs-12 col-md-9 text-right">
<div class="btn-group">
<button type="button" class="btn btn-default light">
<i class="fa fa-chevron-left"></i>
</button>
<button type="button" class="btn btn-default light">
<i class="fa fa-chevron-right"></i>
</button>
</div>
</div>
</div>
</div>
<div class="panel-body pn">
<table id="message-table"
class="table admin-form theme-warning tc-checkbox-1">
<thead>
<tr class="">
<th class="hidden-xs">名称</th>
<th class="hidden-xs">描述</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach var="category" items="${list}">
<tr class="message-unread">
<td>${category.cname}</td>
<td>${category.cdesc}</td>
<td><a href="#">编辑</a> <a href="#">删除</a></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
<style>
/* demo page styles */
body {
min-height: 2300px;
}
.content-header b, .admin-form .panel.heading-border:before, .admin-form .panel .heading-border:before
{
transition: all 0.7s ease;
}
/* responsive demo styles */
@media ( max-width : 800px) {
.admin-form .panel-body {
padding: 18px 12px;
}
}
</style>
<style>
.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year
{
width: 48%;
margin-top: 0;
margin-bottom: 0;
line-height: 25px;
text-indent: 3px;
color: #888;
border-color: #DDD;
background-color: #FDFDFD;
-webkit-appearance: none; /*Optionally disable dropdown arrow*/
}
</style>
<script
src="${pageContext.request.contextPath }/vendor/jquery/jquery-1.11.1.min.js"></script>
<script
src="${pageContext.request.contextPath }/vendor/jquery/jquery_ui/jquery-ui.min.js"></script>
<script
src="${pageContext.request.contextPath }/assets/admin-tools/admin-forms/js/jquery.validate.min.js"></script>
<script
src="${pageContext.request.contextPath }/assets/admin-tools/admin-forms/js/additional-methods.min.js"></script>
<script
src="${pageContext.request.contextPath }/assets/admin-tools/admin-forms/js/jquery-ui-datepicker.min.js"></script>
<script
src="${pageContext.request.contextPath }/assets/js/utility/utility.js"></script>
<script
src="${pageContext.request.contextPath }/assets/js/demo/demo.js"></script>
<script src="${pageContext.request.contextPath }/assets/js/main.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/pages.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/items.js"></script>
</body>
</html>
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星