java
shelleyHLX
这个作者很懒,什么都没留下…
展开
-
【Java知识点详解 1】缓存
一、前言缓存可以让原本打开很慢的页面,变得能“秒开”。平时访问的APP与网站几乎都涉及缓存的运用。那么,缓存除了能加速数据的访问之外,还有什么作用呢?另外,任何事物都有两面性,我们如何才能将缓存的优点发挥的淋漓尽致,同时避免它的弊端呢?本文就给大家分享一下如何理解缓存,以及它的运用思路,希望对大家有所启发。二、缓存能做什么?正如前面所说,大家最普遍的理解就是当我们遇到某个页面打开很慢的时候,会想到引入缓存,这样页面打开就快了。其实快和慢是相对的,从技术角度来说,缓存之所以快是因为转载 2021-04-29 15:50:30 · 399 阅读 · 0 评论 -
Tomcat启动startup.bat一闪而过就消失的原因和解决方法
遇到很多次运行startup.bat后,一个窗口一闪而过的问题,但是从来没去纠正怎样修改配置才是正确的,现在从网上查阅的资料整理如下:进入tomcat的安装目录(即解压后放置的地方):看到圈出红色的3个bat文件,一般通过startup.bat启动tomcat时流程是:startup->catalina->setclasspath->catalina如果这3个bat文件里面有一个出现错误的话就是启动失败。为了找到一闪而过的原因得需要我们来看看这3个文件里面到底是什么了原因一:转载 2021-04-20 11:35:21 · 3713 阅读 · 0 评论 -
使用Eclipse工具开发Servlet(新建web项目->创建Servlet->部署和访问Servlet)
在Eclipse工具栏中的【File】->【New】->【Other】,打开如下菜单栏,选择Dynamic Web Project 点击下一步,如下图所示: 这里Dynamic web module version选择2.5,(这个版本比较稳定,建议初学者选择这个版本) 然后点击,下一步,下一步,完成。 在资源管理器里,选择Java Resources/src,鼠标停留在src文件夹上右击 ,新建new servlet 填入包...转载 2021-04-19 14:37:39 · 784 阅读 · 0 评论 -
spring源码下载安装,导入idea以及编译报错问题详细解决过程
参考 《spring源码深度解析 第2版》一、spring源码下载github官网github首页搜索 “spring”选择 spring-projects/spring-framework点击 Branch master 选择5.0.x下载源码 ZIP压缩包Clone or download -> Download ZIP如果由于网络问题下载不下来的话,下面是我上传到网盘上的spring5.0.x源码网盘下载链接:https://pan.baidu.com/s/1S5QCa转载 2020-11-27 16:45:45 · 2048 阅读 · 1 评论 -
spring概述
目录Spring 概况上spring介绍spring发展历程spring给我们带来的改变spring 的架构分层Spring概况下依赖注入控制反转AOP面向切面编程Spring 框架上什么是框架为什么使用框架为什么要使用软件框架spring源码下载spring工程导入ideaSpring 框架下spring 项目结构spring core containerspring 数据访问/集成spring webspring AOP原创 2020-11-27 15:26:26 · 430 阅读 · 0 评论 -
条件和循环
目录条件声明条件语句if ... else语句嵌套 if 语句嵌套 if 语句else if 语句else if 语句逻辑语句逻辑运算符逻辑或、逻辑非操作符switch 语句switch 语句default 语句while 循环while 循环while 循环for 循环for 循环for 循环do while 循环do while 循环循环控制语句小节训练条件声明条件语句条件语句用于根据不同的条件.原创 2020-11-27 14:23:12 · 194 阅读 · 0 评论 -
java基本概念
Java 介绍开始学习JavaJava 是由Sun Microsystems公司于1995年5月推出的高级程序设计语言,目前由Oracle拥有。Java 可运行于多个平台,如Windows, Mac OS,及其他多种UNIX版本的系统。Java 是平台无关的语言,用Java编写的应用程序不用修改就可以在不同的平台上运行。Java 实现了 “一次编写,到处运行” 的机制。Java 介绍Java 无处不在,据估计,全...原创 2020-11-27 13:52:38 · 346 阅读 · 0 评论 -
java入门简介和软件环境安装
java简介James Gosling:java的创始人资本在哪个行业,哪个行业就得到发展。大数据:解决方案和生态环境。最好的跨平台开源编程语言软件开源,java的各种版本:J2SE:语法基本的内容。J2EE:工具,web等。jdk1.8和IntelliJ IDEA, 的下载:由于课程相关安装包体积过大无法放入资料区,同学可以自行在百度云盘下载:网盘链接:https://pan.baidu.com/s/1j1czeBFLyXDNbZQKM_fKzg提取码:mraejava环原创 2020-11-21 14:56:33 · 207 阅读 · 0 评论 -
HashMap:学习总结
有关ConcurrentHashMap的学习总结我记录在了这一篇博文:ConcurrentHashMap学习总结首先是HashMap的整体结构:主体采用数组进行存储。 当数组处的节点产生碰撞,会向下延伸,生成一条链表 当超过成树阈值(8)且数组长度大于64后,采用红黑树进行存储(红黑树的结构复杂,但是查找效率高)HashTable的创建jdk8以前:在创建的时候就会有一个Entry[] table来存储jdk8以后:会在第一次put方法被调用的时候创建E...转载 2020-08-05 09:40:14 · 307 阅读 · 0 评论 -
Hashtable in Java
Hashtable in JavaThis class implements a hash table, which maps keys to values. Any non-null object can be used as a key or as a value.To successfully store and retrieve objects from a hashtable, t...原创 2019-01-28 16:35:43 · 203 阅读 · 0 评论 -
HashMap in Java
HashMap in JavaHashMap is a part of Java’s collection since Java 1.2. It provides the basic implementation of Map interface of Java. It stores the data in (Key, Value) pairs. To access a value one m...原创 2019-01-28 14:30:00 · 285 阅读 · 0 评论 -
ArrayDeque in Java
ArrayDeque in JavaArrayDeque in Java provides a way to apply resizable-array in addition to the implementation of the Deque interface. It is also known as Array Double Ended Queue or Array Deck. Thi...原创 2019-01-27 14:45:32 · 203 阅读 · 0 评论 -
Deque interface in Java with Example
The java.util.Deque interface is a subtype of the java.util.Queue interface. The Deque is related to the double-ended queue that supports addition or removal of elements from either end of the data st...原创 2019-01-27 14:12:29 · 283 阅读 · 0 评论 -
安装新版xampp后apache无法启动提示:Apache Service detected with wrong path解决方案
转载位置:http://www.th7.cn/db/mysql/201505/105766.shtml我以前安装过xampp,因为学习thingPHP需要升级PHP5.0以上,所以我就卸掉了xampp,从新安装新版本的xampp其中PHP是最新版的,但是安装后启动xampp提示如下:Apache Service detected with wrong path.Change XAM转载 2016-09-20 21:21:33 · 649 阅读 · 0 评论 -
eclipse 安装 Windowbuilder
1. 找下载windowbuilder 的网址网址:http://www.eclipse.org/windowbuilder/download.php2. eclipse->help>install new software,把网址粘进work with里, 选中下边的Name,如图3. 安装成功原创 2017-04-24 18:13:45 · 363 阅读 · 0 评论 -
eclipse快捷键
1. 注释一行(//)ctrl+shift+C、Ctrl+/2. 把选中的多行注释(/* */)ctrl+shift+/3. 注释多行、解除注释ctrl+shift+c按一次注释、第二次解除注释4. 选中一行或几行的文字的一段ctrl+shift...原创 2018-02-22 16:50:25 · 120 阅读 · 0 评论 -
java调用tensorflow训练好的模型
1. python的处理整个模型的源码在此:https://github.com/shelleyHLX/tensorflow_java多谢star首先训练一个模型,代码如下import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltfrom tensorflow.python.framewo...原创 2018-12-10 16:54:53 · 9113 阅读 · 0 评论 -
eclipse 查看源码
1. Windows->Preference2. java->Installed JREs->选择jre7->Edit(右边) 3. 选择 C:\Program Files\Java\jre7\lib\rt.jar(根据你自己的jre的路径)右边选择Source Attachment4.选择External location选择 Exte...原创 2016-07-05 13:10:12 · 314 阅读 · 0 评论 -
Collections in Java
Collections in JavaA Collection is a group of individual objects represented as a single unit. Java provides Collection Framework which defines several classes and interfaces to represent a group of...原创 2019-01-25 13:50:48 · 270 阅读 · 0 评论 -
List Interface in Java with Examples
List Interface in Java with ExamplesThe Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the in...原创 2019-01-25 14:17:10 · 344 阅读 · 0 评论 -
LinkedList in Java
LinkedList in JavaLinked List are linear data structures where the elements are not stored in contiguous locations and every element is a separate object with a data part and address part. The eleme...原创 2019-01-25 15:51:18 · 276 阅读 · 0 评论 -
HashSet in Java
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as to the iteration order of the set which means that the class does n...原创 2019-01-27 11:46:52 · 617 阅读 · 0 评论 -
xml可编辑化
Web.xml右键open with 选择css jsp editor原创 2016-07-04 22:17:41 · 344 阅读 · 0 评论