zoukankan      html  css  js  c++  java
  • 异常处理

    在做一个项目时,写jsp页面,发现一写页面报错,报则报javax.servlet.jsp.JspException cannot be resolved to a type错误,于是我网上查了下资料;

    解决方案:右键你的项目–properties选择Targeted Runtimes,选择你的运行环境,我选择Apache Tomcat v8.0,Apply–OK。

    选择改变包结构

    pakage----hier

    Mysql报警告:WARN: Establishing SSL connection
    警告信息
    [root@X203 bin]# Thu Dec 08 10:18:13 CST 2016 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

    解决办法
    在mysql连接字符串url中加入ssl=true或者false即可,如:

    jdbc:mysql://X203:3306/testdb?useUnicode=true&characterEncoding=utf8&useSSL=false
    1
    备注
    启用SSL加密连接后,性能必然会有下降。
    由于SSL开销较大的环节在建立连接,所以短链接的开销可能会更大,因此推荐使用长连接或者连接池的方式来减小SSL所带来的额外开销,不过好在MySQL的应用习惯大部分也是长连接的方式。

    总结
    1.MySQL 5.7配置SSL要比5.6来的简单的多
    2.MySQL 5.7客户端默认开启SSL加密连接
    3.通常来说,开启SSL加密连接后,性能最大的开销在25%左右

  • 相关阅读:
    mas_makeConstraints && mas_remakeConstraints && mas_updateConstraints 用法与注意事项
    iOS特性一 关闭系统日志打印
    React-Native -课后练习
    RN 项目导入WebStorm 组件没有依赖
    React-Native需要css和布局-20160902
    方式 隐藏导航栏
    svn status状态
    spring整合redis
    maven编译跳过TEST
    linux自动登录脚本expect
  • 原文地址:https://www.cnblogs.com/yangshuyuan1009/p/11252616.html
Copyright © 2011-2022 走看看