- 关于 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 的解决办法
朝畫夕拾
修改密码:ALTERUSER'root'@'localhost'IDENTIFIEDBY'root';启动cmd窗口,输入命令“mysql-uroot-p”直接回车登录到MySQL服务器,然后进行修改,可以输入命令:mysql>ALTERUSER'root'@'localhost'IDENTIFIEDBY'HuaZai12345!';现在退出,在输入命令“mysql-uroot-p”在输入刚才设置
- Ubuntu安装Mysql最新版本
心之所想,行则将至
ubuntulinux运维
目录1.更新列表2.安装mysql命令3.安装完成之后Mysql会自动启动,直接进入mysql命令行界面,默认无密码4.进入之后,使用命令修改密码5.更新权限6.卸载mysql,先暂停mysql服务7.卸载mysql相关软件包8.移除mysql相关配置9.移除mysql相关数据文件10.清理剩余的依赖包1.更新列表sudoapt-getupdate2.安装mysql命令apt-getinstall
- Java小项目——超市会员管理系统(简洁明了)
超级蛋蛋怪无敌冲!!
java开发语言
1.解题思路:先运用面向对象的思想抽象出两个类:业务类,会员类运用集合中的ArrayList存储对象中的信息需要有一个循环的菜单来供人选择,菜单中的功能有:1.积分累计2.积分兑换3.查询剩余积分4.修改密码5.开卡6.退出首先要完成开卡功能,不然其他的功能没办法使用退出功能最简单,直接跳出循环就行积分累计功能直接用setScore()方法进行累加;积分兑换使用setScore()方法进行减操作;
- 计算机毕业设计hadoop+spark知识图谱房源推荐系统 房价预测系统 房源数据分析 房源可视化 房源大数据大屏 大数据毕业设计 机器学习
计算机毕业设计大全
创新点:1.支付宝沙箱支付2.支付邮箱通知(JavaMail)3.短信验证码修改密码4.知识图谱5.四种推荐算法(协同过滤基于用户、物品、SVD混合神经网络、MLP深度学习模型)6.线性回归算法预测房价7.Python爬虫采集链家数据8.AI短信识别9.百度地图API10.lstm情感分析11.spark大屏可视化开发技术:springbootvue.jspythonechartssparkmys
- python如何对excel批量加密_python实现linux服务器批量修改密码并生成execl
weixin_39963523
批量修改linux服务器密码,同时生成execl表格#!/usr/bin/envpython#coding:utf8#随机生成自定义长度密码fromrandomimportchoiceimportstring,pickledefGenPassword(length=8,chars=string.ascii_letters+string.digits):return''.join([choice(c
- 计算机毕业设计hadoop+spark知识图谱美食推荐系统 美食价格预测 美团推荐系统 美团爬虫 大众点评爬虫 美食数据分析 美食可视化大屏 大数据毕设
计算机毕业设计大全
创新点:1.支付宝沙箱支付2.支付邮箱通知(JavaMail)3.短信验证码修改密码4.知识图谱5.四种推荐算法(协同过滤基于用户、物品、SVD混合神经网络、MLP深度学习模型)6.线性回归算法预测房价7.Python爬虫采集大众点评美食数据8.AI短信识别9.百度地图API10.lstm情感分析11.spark大屏可视化开发技术:springbootvue.jspythonechartsspar
- vue+elementUI用户修改密码的前端验证
zj_zjk_sjz
vue.js前端elementuijavascript
用户登录后修改密码,密码需要一定的验证规则。旧密码后端验证是否正确;前端验证新密码的规范性,新密码规范为:6-16位,至少含数字/字母/特殊字符中的两种;确认密码只需要验证与新密码是否一致;弹窗结构取消确认form验证规则passRules:{oldPassword:[{required:true,message:'请输入旧密码',trigger:'blur'}],newPassword:[{va
- 使用xtrabackup进行MySQL物理备份脚本
Starts️
mysql数据库
只想修改密码、用户、邮箱#!/bin/bash/dev/nullif[!-d$backup_dir/full];thenmkdir-p$backup_dir/fullfi$cmd$backup_dir/full&>/dev/null&&\(echo"[$(date+"%F%T")]full备份成功">>$mysql_backupecho"[full]$backup_dir/full/`ls$bac
- sqli-labs less17 password-update语句
Yix1a
转自一位不知名大佬的笔记-----------------------------------less-17-----------------------------------原urlhttp://192.168.137.138/sqli-labs-master/Less-17/页面显示:[PASSWORDRESET](密码重置)说明这个页面很有可能是使用了update语句很多网页有修改密码的功
- git操作基本指令
前端小砖er
git
1.查看用户名gitconfiguser.name2.查看密码gitconfiguser.password3.查看邮箱gitconfiguser.email4.修改用户名gitconfig--globaluser.name"xxx(新用户名)"5.修改密码gitconfig--globaluser.password"xxx(新密码)"6.修改邮箱gitconfig--globaluser.emai
- MySQL——知识点总结(持续更新中)
人若少年要风流
MySQLmysqllinuxcentos运维数据库
知识点汇总MySQL——在线、离线安装MySQL-5.7.14MySQL——使用docker镜像拉取MySQLMySQL——通用二进制安装MySQL-5.7.14MySQL——源码安装MySQL-5.7.14MySQL——修改密码及密码强度规则MySQL——表查询基本语句MySQL——单表查询(素材+习题)MySQL——多表查询(素材+习题)MySQL——备份恢复练习,mysqldump的使用My
- Javaweb实现的学生宿舍管理系统
全栈小白.
Java全栈开发系统源码javatomcat
Javaweb实现的学生宿舍管理系统文章目录Javaweb实现的学生宿舍管理系统系统介绍技术选型成果展示源码获取账号地址及其他说明系统介绍Javaweb实现的学生宿舍管理系统采用jsp+servlet技术实现了如下功能模块,分别是宿舍管理员管理、学生管理、宿舍楼管理、缺勤记录、修改密码等功能,系统未使用持久层框架,使用了jdbc技术与数据库进行交互,有需要的小伙伴可自行添加功能进行二次开发。技术选
- MySQL数据库|安装(Windows)
Sunshine.King
MySQL数据库mysqlwindows
目录一、下载MySQL1.下载链接2.steps二、安装配置1.解压下载的压缩包2.编写mysql配置文件--my.ini①.在解压目录下==创建==my.ini文件②.编辑my.ini3.启动MySQL数据库4.登录MySQL数据库5.修改密码6.配置环境变量7.将MySQL服务调为手动一、下载MySQL1.下载链接目前版本是MySQL8,下载链接2.steps点击Download,进入下载页点
- WordPress管理后台用户修改密码
ZhujiServer
服务器前端linuxwordpress
在WordPress网站管理后台,为用户提供一个方便的方式来修改他们的密码是很重要的。这可以帮助确保网站的安全性,同时也提供了用户友好的体验。上周有一个使用Hostease的虚拟主机的客户,反馈他使用WordPress建站,但是他忘记了WordPress管理后台登录用户名的密码,联系在线客服咨询如何处理这个问题。现在我们分享处理方法,并向您介绍如何在WordPress管理后台为用户提供修改密码的方
- Linux中无法忘记mysql密码处理办法
ljf8838
linuxmysql运维
找到/etc/my.cnf或者/etc/mysql/my.cnf文件添加下面两行代码,取消密码验证[mysqld]skip-grant-table使用命令登录:mysql-uroot-p,回车,回车使用sql语句来修改密码mysql>usemysql;mysql>updateusersetpassword=password(“你要设置的密码”)whereuser=‘root’;mysql>exit
- MySQL(1/3)
yrpyy
mysql数据库
基本命令行操作命令行连接mysql-uroot-p回车,然后在下一行输入密码,或者直接在p后写密码修改密码updatamysql.usersetauthentication_string=password('原密码')whereuser='root'andHost='localhost';刷新权限flushprivileges;查看所有数据库showdatabases;切换数据库use数据库名成功
- w28pikachu-csrf实例
杭城我最帅
csrfandroid前端
pikachu-csrf实例get级别这里需要同时修改性别、手机、住址、邮箱。写一个简单的html文件,里面伪装修改密码的文字,代码如下:pikachu-csrf-get点击"pikachu-csrf-get"文字后,跳转到pikachu的csrf(get)界面,展示修改后的界面。post级别这里post请求,需要通过表单提交。写一个简单的html文件,里面伪装修改密码的文字,代码如下:pikac
- w28DVWA-csrf实例
杭城我最帅
csrf前端dvwa
DVWA-csrf实例low级别修改密码:修改的密码通过get请求,暴露在url上。写一个简单的html文件,里面伪装修改密码的文字,代码如下:dvwa-csrf-low点击"dvwa-csrf-low"文字后,跳转到dvwa的修改密码界面,提示Passwordchanged(密码已修改)。middle级别修改密码:修改的密码通过get请求,暴露在url上。写一个简单的html文件,里面伪装修改密
- Elasticsearch如何设置密码
奔跑吧邓邓子
高效运维elasticsearch大数据搜索引擎
目录一、配置1.修改配置文件2.设置密码3.修改密码二、验证一、配置1.修改配置文件修改配置文件config/elasticsearch.yml,写入以下配置:xpack.security.enabled:truediscovery.type:single-nodexpack.security.transport.ssl.enabled:true2.设置密码执行命令:./bin/elasticse
- ESP32 非易失性存储器NVS,实现数据掉电存储(ESP-IDF)
牛马大师兄
ESP32系列经验教程嵌入式硬件物联网mcu单片机嵌入式实时数据库iotrisc-v
0、前言在嵌入式物联网设备中,或多或少都会涉猎到数据掉电存储的需求。例如生活中常见的智能锁,如果不能实现数据掉电存储,智能锁的数据仅仅是存储于RAM内存中的话,一但掉电,此前用户所作的修改密码操作也会失效,仅仅有一个最初烧录到程序代码中的初始密码,如果这样的产品上市,也不会有用户愉快的买单。因此数据掉电存储在嵌入式物联网开发中是非常常见的,我们日常生活的许多电子产品也都有数据掉电存储的功能。提醒:
- jsp+servlet+mysql实现的火车票预定管理系统源码+运行教程+参考论文+开题报告
yuancodenet
javamysqlservlet
今天给大家演示的是一款由jsp+servlet+mysql实现的火车票预定管理系统,该系统主要实现的功能有:前台功能:用户查询车票信息、登录注册、购票、查看已购车票、修改密码等功能,后台管理功能:管理员管理、用户管理、火车信息管理、站点信息管理、线路信息管理、车票信息管理、购票信息管理等。PS:目前该项目已经配套了完整的开发文档(开发文档包含了需求分析、系统架构、流程图、E-R图、用例图、实体图、
- 计算机毕业设计-基于VUE+SpringBoot+MyBatis+MySQL的学生作业管理系统
阿联爱学习
#MySQL#毕业设计计算机毕业设计Java作业管理系统Vue前后端分离
简介基于VUE+SpringBoot的学生成绩管理系统,支持在线做作业和学生分数段统计。1.项目功能概述1.1学生功能概述(1)登录功能学生输入姓名密码即可完成登录(2)浏览作业信息学生可以进行浏览试卷,查询试卷信息(3)做作业学生在线进行答题,提交试卷(4)查看与自己相关的作业信息学生查看自己的作业消息(5)查看分数学生查看自己的分数(5)查看留言学生查看自己的留言(5)修改密码学生修改登录密码
- 基于django的视频点播网站开发-step6-个人中心功能
山东好汉Tim
毕业设计合集python
从本讲起,我们开始个人中心功能的开发。个人中心里面包括个人资料、修改密码、订阅设置、意见反馈这四部分。通过这部分的开发,我们将会接触到更多django的用法。感兴趣的伙伴可通过网站演示预览网站,登录后点击右上角头像即可弹出个人中心相关菜单。整体功能个人中心模块是对用户的信息进行展示并可以编辑。其中个人资料、修改密码、订阅设置是对用户信息的编辑,反馈建议是属于创建新数据。个人资料这里主要是对个人资料
- MySql5.7之ERROR 1045 (28000)问题处理
小袁搬码
MySQL8MySQL5.7mysqlmysql5.7数据库mysql8
MySql5.7之ERROR1045(28000)问题处理文章目录MySql5.7之ERROR1045(28000)问题处理1.ERROR1045(28000)问题2.问题原因3.解决方法(重置密码)1.修改my.ini配置2.修改密码3.刷新权限4.再次修改my.ini配置1.ERROR1045(28000)问题时隔多日连接MySQL时出现了"ERROR1045(28000):Accessden
- Linux(命令总结)
everystep_
简单命令普通用户和root用户的切换:$su切换到root用户$suwije(用户名)切换到普通用户$who获得当前用户信息$echo将参数输出到屏幕上,如果不加双引号会输出成字符串以空格隔开,如果加则原样输出。$date显示时间$cal显示月份$clear清屏$passwd修改密码文本概念和文件类型文件系统:由若干目录和其子目录组成的层次结构,根目录是最上层的。文件结构:分为成分和命名两种。文件
- 计算机毕业设计项目选题推荐(免费领源码)java+springboot+mysql鞋包商城28653
QQ_3376098506
javaspringbootphpc++c#mysqlpython
摘要鞋包商城采用B/S结构、java开发语言、以及Mysql数据库等技术。系统主要分为管理员和用户及卖家三部分,管理员管理主要功能包括:首页、网站管理(轮播图、网站公告)、人员管理(管理员、卖家、用户)、内容管理(交流论坛、论坛分类、新闻资讯、新闻分类)、购物管理(商城中心、分类列表、订单列表)、模块管理(订单物流、商品售后)、个人管理(个人信息、修改密码)等。用户后台管理主要包括:首页、内容管理
- 手把手教你开发Python桌面应用-PyQt6图书管理系统-修改密码UI设计实现
java1234_小锋
Pythonpyqtpyqt开发pyqt6pyqt实战python
锋哥原创的PyQt6图书管理系统视频教程:PyQt6图书管理系统视频教程Python桌面开发Python入门级项目实战(无废话版)火爆连载更新中~_哔哩哔哩_bilibiliPyQt6图书管理系统视频教程Python桌面开发Python入门级项目实战(无废话版)火爆连载更新中~共计24条视频,包括:PyQt6图书管理系统视频教程Python桌面开发Python入门级项目实战(无废话版)火爆连载更新
- 2021-09-05
之念
进驻的第一日。刚刚登入的时候还以为自己有账号,在修改密码页面却被告知手机号码不存在。那就从头注册一个账号吧。于是乎,今天正式在开始杂记写有用或者没用的东西吧。既然今天是有些心血来潮地选择在一个新的平台上开启自己不知道会写些什么的生涯,那么开头就以杂记开始这段有些随意的分享吧。最近很喜欢ModernLove这部剧,昨天刚刚看完了第一季,今天看了一两集第二季。这部美剧每一集都是单独的一个故事,最后一集
- 基于Java (spring-boot)的考勤管理系统
源码好又多
java论文毕设考勤管理系统javaspringboot毕设论文vue
一、项目介绍普通员工功能:(1)登录:员工进入界面后需要输入自己的账号密码进行登录。(2)签到打卡:员工登录完成以后,可以进行签到打卡。(3)修改密码:员工可进入界面,进行密码的修改。(4)提交申请:员工登录成功后,可提交请假申请,固定资产申请。(5)查看消息:员工进入界面可查看领导发布的会议通知,查看申请情况。工作台功能:(1)发布会议通知:用户登录成功后,可进行申请会议,并将会议信息进行发布。
- 第78讲 修改密码
九品印相
分布式小程序电商2前端
系统管理实现修改密码实现前端modifyPassword.vue:确认修改import{ref}from'vue'importaxiosfrom"@/util/axios";import{ElMessage}from"element-plus";constform=ref({userName:"",password:"",oldPassword:"",newPassword:"",newPassw
- jvm调优总结(从基本概念 到 深度优化)
oloz
javajvmjdk虚拟机应用服务器
JVM参数详解:http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html
Java虚拟机中,数据类型可以分为两类:基本类型和引用类型。基本类型的变量保存原始值,即:他代表的值就是数值本身;而引用类型的变量保存引用值。“引用值”代表了某个对象的引用,而不是对象本身,对象本身存放在这个引用值所表示的地址的位置。
- 【Scala十六】Scala核心十:柯里化函数
bit1129
scala
本篇文章重点说明什么是函数柯里化,这个语法现象的背后动机是什么,有什么样的应用场景,以及与部分应用函数(Partial Applied Function)之间的联系 1. 什么是柯里化函数
A way to write functions with multiple parameter lists. For instance
def f(x: Int)(y: Int) is a
- HashMap
dalan_123
java
HashMap在java中对很多人来说都是熟的;基于hash表的map接口的非同步实现。允许使用null和null键;同时不能保证元素的顺序;也就是从来都不保证其中的元素的顺序恒久不变。
1、数据结构
在java中,最基本的数据结构无外乎:数组 和 引用(指针),所有的数据结构都可以用这两个来构造,HashMap也不例外,归根到底HashMap就是一个链表散列的数据
- Java Swing如何实时刷新JTextArea,以显示刚才加append的内容
周凡杨
java更新swingJTextArea
在代码中执行完textArea.append("message")后,如果你想让这个更新立刻显示在界面上而不是等swing的主线程返回后刷新,我们一般会在该语句后调用textArea.invalidate()和textArea.repaint()。
问题是这个方法并不能有任何效果,textArea的内容没有任何变化,这或许是swing的一个bug,有一个笨拙的办法可以实现
- servlet或struts的Action处理ajax请求
g21121
servlet
其实处理ajax的请求非常简单,直接看代码就行了:
//如果用的是struts
//HttpServletResponse response = ServletActionContext.getResponse();
// 设置输出为文字流
response.setContentType("text/plain");
// 设置字符集
res
- FineReport的公式编辑框的语法简介
老A不折腾
finereport公式总结
FINEREPORT用到公式的地方非常多,单元格(以=开头的便被解析为公式),条件显示,数据字典,报表填报属性值定义,图表标题,轴定义,页眉页脚,甚至单元格的其他属性中的鼠标悬浮提示内容都可以写公式。
简单的说下自己感觉的公式要注意的几个地方:
1.if语句语法刚接触感觉比较奇怪,if(条件式子,值1,值2),if可以嵌套,if(条件式子1,值1,if(条件式子2,值2,值3)
- linux mysql 数据库乱码的解决办法
墙头上一根草
linuxmysql数据库乱码
linux 上mysql数据库区分大小写的配置
lower_case_table_names=1 1-不区分大小写 0-区分大小写
修改/etc/my.cnf 具体的修改内容如下:
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/va
- 我的spring学习笔记6-ApplicationContext实例化的参数兼容思想
aijuans
Spring 3
ApplicationContext能读取多个Bean定义文件,方法是:
ApplicationContext appContext = new ClassPathXmlApplicationContext(
new String[]{“bean-config1.xml”,“bean-config2.xml”,“bean-config3.xml”,“bean-config4.xml
- mysql 基准测试之sysbench
annan211
基准测试mysql基准测试MySQL测试sysbench
1 执行如下命令,安装sysbench-0.5:
tar xzvf sysbench-0.5.tar.gz
cd sysbench-0.5
chmod +x autogen.sh
./autogen.sh
./configure --with-mysql --with-mysql-includes=/usr/local/mysql
- sql的复杂查询使用案列与技巧
百合不是茶
oraclesql函数数据分页合并查询
本片博客使用的数据库表是oracle中的scott用户表;
------------------- 自然连接查询
查询 smith 的上司(两种方法)
&
- 深入学习Thread类
bijian1013
javathread多线程java多线程
一. 线程的名字
下面来看一下Thread类的name属性,它的类型是String。它其实就是线程的名字。在Thread类中,有String getName()和void setName(String)两个方法用来设置和获取这个属性的值。
同时,Thr
- JSON串转换成Map以及如何转换到对应的数据类型
bijian1013
javafastjsonnet.sf.json
在实际开发中,难免会碰到JSON串转换成Map的情况,下面来看看这方面的实例。另外,由于fastjson只支持JDK1.5及以上版本,因此在JDK1.4的项目中可以采用net.sf.json来处理。
一.fastjson实例
JsonUtil.java
package com.study;
impor
- 【RPC框架HttpInvoker一】HttpInvoker:Spring自带RPC框架
bit1129
spring
HttpInvoker是Spring原生的RPC调用框架,HttpInvoker同Burlap和Hessian一样,提供了一致的服务Exporter以及客户端的服务代理工厂Bean,这篇文章主要是复制粘贴了Hessian与Spring集成一文,【RPC框架Hessian四】Hessian与Spring集成
在
【RPC框架Hessian二】Hessian 对象序列化和反序列化一文中
- 【Mahout二】基于Mahout CBayes算法的20newsgroup的脚本分析
bit1129
Mahout
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information re
- nginx三种获取用户真实ip的方法
ronin47
随着nginx的迅速崛起,越来越多公司将apache更换成nginx. 同时也越来越多人使用nginx作为负载均衡, 并且代理前面可能还加上了CDN加速,但是随之也遇到一个问题:nginx如何获取用户的真实IP地址,如果后端是apache,请跳转到<apache获取用户真实IP地址>,如果是后端真实服务器是nginx,那么继续往下看。
实例环境: 用户IP 120.22.11.11
- java-判断二叉树是不是平衡
bylijinnan
java
参考了
http://zhedahht.blog.163.com/blog/static/25411174201142733927831/
但是用java来实现有一个问题。
由于Java无法像C那样“传递参数的地址,函数返回时能得到参数的值”,唯有新建一个辅助类:AuxClass
import ljn.help.*;
public class BalancedBTree {
- BeanUtils.copyProperties VS PropertyUtils.copyProperties
诸葛不亮
PropertyUtilsBeanUtils
BeanUtils.copyProperties VS PropertyUtils.copyProperties
作为两个bean属性copy的工具类,他们被广泛使用,同时也很容易误用,给人造成困然;比如:昨天发现同事在使用BeanUtils.copyProperties copy有integer类型属性的bean时,没有考虑到会将null转换为0,而后面的业
- [金融与信息安全]最简单的数据结构最安全
comsci
数据结构
现在最流行的数据库的数据存储文件都具有复杂的文件头格式,用操作系统的记事本软件是无法正常浏览的,这样的情况会有什么问题呢?
从信息安全的角度来看,如果我们数据库系统仅仅把这种格式的数据文件做异地备份,如果相同版本的所有数据库管理系统都同时被攻击,那么
- vi区段删除
Cwind
linuxvi区段删除
区段删除是编辑和分析一些冗长的配置文件或日志文件时比较常用的操作。简记下vi区段删除要点备忘。
vi概述
引文中并未将末行模式单独列为一种模式。单不单列并不重要,能区分命令模式与末行模式即可。
vi区段删除步骤:
1. 在末行模式下使用:set nu显示行号
非必须,随光标移动vi右下角也会显示行号,能够正确找到并记录删除开始行
- 清除tomcat缓存的方法总结
dashuaifu
tomcat缓存
用tomcat容器,大家可能会发现这样的问题,修改jsp文件后,但用IE打开 依然是以前的Jsp的页面。
出现这种现象的原因主要是tomcat缓存的原因。
解决办法如下:
在jsp文件头加上
<meta http-equiv="Expires" content="0"> <meta http-equiv="kiben&qu
- 不要盲目的在项目中使用LESS CSS
dcj3sjt126com
Webless
如果你还不知道LESS CSS是什么东西,可以看一下这篇文章,是我一朋友写给新人看的《CSS——LESS》
不可否认,LESS CSS是个强大的工具,它弥补了css没有变量、无法运算等一些“先天缺陷”,但它似乎给我一种错觉,就是为了功能而实现功能。
比如它的引用功能
?
.rounded_corners{
- [入门]更上一层楼
dcj3sjt126com
PHPyii2
更上一层楼
通篇阅读完整个“入门”部分,你就完成了一个完整 Yii 应用的创建。在此过程中你学到了如何实现一些常用功能,例如通过 HTML 表单从用户那获取数据,从数据库中获取数据并以分页形式显示。你还学到了如何通过 Gii 去自动生成代码。使用 Gii 生成代码把 Web 开发中多数繁杂的过程转化为仅仅填写几个表单就行。
本章将介绍一些有助于更好使用 Yii 的资源:
- Apache HttpClient使用详解
eksliang
httpclienthttp协议
Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我们再讨论),它不仅是客户端发送Http请求变得容易,而且也方便了开发人员测试接口(基于Http协议的),即提高了开发的效率,也方便提高代码的健壮性。因此熟练掌握HttpClient是很重要的必修内容,掌握HttpClient后,相信对于Http协议的了解会
- zxing二维码扫描功能
gundumw100
androidzxing
经常要用到二维码扫描功能
现给出示例代码
import com.google.zxing.WriterException;
import com.zxing.activity.CaptureActivity;
import com.zxing.encoding.EncodingHandler;
import android.app.Activity;
import an
- 纯HTML+CSS带说明的黄色导航菜单
ini
htmlWebhtml5csshovertree
HoverTree带说明的CSS菜单:纯HTML+CSS结构链接带说明的黄色导航
在线体验效果:http://hovertree.com/texiao/css/1.htm代码如下,保存到HTML文件可以看到效果:
<!DOCTYPE html >
<html >
<head>
<title>HoverTree
- fastjson初始化对性能的影响
kane_xie
fastjson序列化
之前在项目中序列化是用thrift,性能一般,而且需要用编译器生成新的类,在序列化和反序列化的时候感觉很繁琐,因此想转到json阵营。对比了jackson,gson等框架之后,决定用fastjson,为什么呢,因为看名字感觉很快。。。
网上的说法:
fastjson 是一个性能很好的 Java 语言实现的 JSON 解析器和生成器,来自阿里巴巴的工程师开发。
- 基于Mybatis封装的增删改查实现通用自动化sql
mengqingyu
DAO
1.基于map或javaBean的增删改查可实现不写dao接口和实现类以及xml,有效的提高开发速度。
2.支持自定义注解包括主键生成、列重复验证、列名、表名等
3.支持批量插入、批量更新、批量删除
<bean id="dynamicSqlSessionTemplate" class="com.mqy.mybatis.support.Dynamic
- js控制input输入框的方法封装(数字,中文,字母,浮点数等)
qifeifei
javascript js
在项目开发的时候,经常有一些输入框,控制输入的格式,而不是等输入好了再去检查格式,格式错了就报错,体验不好。 /** 数字,中文,字母,浮点数(+/-/.) 类型输入限制,只要在input标签上加上 jInput="number,chinese,alphabet,floating" 备注:floating属性只能单独用*/
funct
- java 计时器应用
tangqi609567707
javatimer
mport java.util.TimerTask; import java.util.Calendar; public class MyTask extends TimerTask { private static final int
- erlang输出调用栈信息
wudixiaotie
erlang
在erlang otp的开发中,如果调用第三方的应用,会有有些错误会不打印栈信息,因为有可能第三方应用会catch然后输出自己的错误信息,所以对排查bug有很大的阻碍,这样就要求我们自己打印调用的栈信息。用这个函数:erlang:process_display (self (), backtrace).需要注意这个函数只会输出到标准错误输出。
也可以用这个函数:erlang:get_s