- 基于ThinkPHP5的旧衣回收小程序——二手交换废物系统的设计与实现
IT实战课堂—x小凡同学
Java毕业设计项目小程序
摘要:随着社会的快速发展和人们生活水平的提高,旧衣物数量迅速增加,传统的旧衣处理方式已难以满足现代社会的需求。为了有效减少资源浪费,提高旧衣物的利用率,本文基于ThinkPHP5框架设计并实现了一款旧衣回收小程序——二手交换废物系统。该系统通过线上平台,实现旧衣物的回收、分类、展示、交换等功能,为用户提供了一种便捷、环保的旧衣处理方式。本文将从系统需求分析、系统设计、系统实现、系统测试与评估等方面
- thinkphp5支持php,如何让swoole完美支持ThinkPHP5呢
坎布里奇大脸猫
thinkphp5支持php
视频教程推荐TP5与workerman实战在线客服首先开启swoole的http服务开启swoole的http服务并设置提供给url访问页面的文件的根目录,代码如下。这样在浏览器只能访问…static下面的文件,而无法访问其他目录下的文件。http.serverset(['enable_static_handler'=>true,'document_root'=>"/usr/local/openr
- ThinkPHP5.1学习--ThinkPHP5.1 入门开启
Cure The World
PHPThinkPHPphpthinkphp后端
一.框架简介ThinkPHP5.1是目前框架正式版的最新版本;ThinkPHP6.0目前是预览版(尚未稳定的测试版),正式版后考虑制作;TP框架是免费开源的、轻量级的、简单快速且敏捷的PHP框架;你可以免费使用TP框架,甚至可以将你的项目商用;ThinkPHP5.1要求PHP版本是5.6+以上(目前最新版本是7.x);我们采用最新7.x来运行TP5.1,而预览版TP6需要7.1+;集成环境这里采用
- thinkphp5解决在apache中重写规则不生效的问题[No input file specified.]
背书包的甜瓜
thinkphp5
在public目录下面,找到.htaccess文件,修改最后一行RewriteRule^(.*)$index.php/$1[QSA,PT,L]在index.php后面加?号,保存,重启Apache即可源文件Options+FollowSymlinks-MultiviewsRewriteEngineOnRewriteCond%{REQUEST_FILENAME}!-dRewriteCond%{REQ
- thinkphp报错No input file specified. (对于隐藏url中的index.php 是如何做到的?)
S_Yes
PHPthispanidtransmarkspanidtransmarksty
thinkphp51.去除httpd.conf文件中"#LoadModulerewrite_modulemodules/mod_rewrite.so"前面的"#"号;2.修改httpd.conf文件中的AllowOverrideNone为AllowOverrideAll,目的是支持.htaccess文件;##AllowOverridecontrolswhatdirectivesmaybeplace
- ThinkPHP5 将session保存到 mysql
_不能说的秘密i
参考我只是个搬运工,一个探路者,这个不是我写的,原作者在这里为什么有这样的需求?...鬼知道为什么不存memcache或者redis,鬼知道你会遇到什么样的需求,那还能怎么办,自己解决呗,为了避免下次再一顿百度..一顿谷歌...我就记录一下建立对应的数据表CREATETABLEthink_session(session_idvarchar(255)NOTNULL,session_expireint
- php 兼容 手机 pc,在thinkPHP5框架下实现手机和PC端浏览器的切换
愤怒的不死鸟
php兼容手机pc
在自己做的实习项目中我对手机和PC端浏览器的切换有了一点求知欲,通过项目代码和网上的讲解,整理代码如下:1.把下面的代码放在application\common.php公共方法那里。functionisMobile(){//如果有HTTP_X_WAP_PROFILE则一定是移动设备if(isset($_SERVER['HTTP_X_WAP_PROFILE']))returntrue;//如果via
- vscode+JS-CSS-HTML Formatter 坑了thinkphp5
smartcoach
随手使用小记web前端技术
遇到一个垃圾问题,因为用的是vscode同时安装了JS-CSS-HTMLFormatter插件来格式化html、css、js。基本没去管过配置,用的就是默认的。今天在处理一个thinkphp5的项目时候遇到一个问题{includefile="common/footer"/}引用公共的底部组件,但奇怪的事出现了,include无效,直接在页面上显示出来了字符串!直接说结果,就是JS-CSS-HTML
- thinkphp5.0提示不支持redis,not support: redis
Hero.Lin
redis数据库缓存
安装PHP扩展例如宝塔,其他环境请用命令行,安装redis配置完成以后,修改php.ini把redis扩展打开即可,重启环境
- 52
whIteKi
今天继续封装android,然后看了一会thinkphp5把依赖注入,中间件,路由又看了一遍,又进一步理解了,想辞职……又要拖一天
- thinkphp5 cookie的用法
周行知
方法与session的配置与用法差不多publicfunctionc1(){//设置Cookie有效期为3600秒Cookie::set('user_name','TPshop团队',3600);echoCookie::get('user_name');//也支持使用Cookie类直接读取}publicfunctionc2(){//设置Cookie有效期为3600秒//设置cookie前缀为thi
- 草莓CDMS原创内容分销系统,微信小说平台系统,附带系统搭建教程,搭建手册
行动之上
源码免费下载bootstrap前端html
草莓原创内容分销系统(草莓CDMS)——您的一站式内容分销解决方案引领内容分销新潮流,草莓原创内容分销系统(简称草莓CDMS)以强大的技术支持和灵活的业务模式,为原创内容的传播和商业变现提供了前所未有的便捷。基于ThinkPHP5.1、Easywechat4.0、Swoole和Redis等尖端技术,草莓CDMS确保了系统的稳定性、高效性和可扩展性。其中,Swoole和Redis的智能推送模块使得内
- thinkphp5 使用redis
猿来似小周
thingphpredis数据库缓存
本文是在本地小皮配置的1.查看该项目是否有安装redis扩展在index.php入口文件运行项目后出现以前界面如果没有安装该扩展的话是不会出现redis相关信息的以下是在小皮面子安装redis,及给该项目安装redis扩展在小皮面板找到redis软件安装包,安装redis到本地在小皮面板网站选项,找到需要安装redis的网站,然后点击管理,勾选以下选项即可然后重启小皮2、在项目中引入usethin
- ThinkPHP5.1使用Redis
TonyPaPa
后台开发phpPHPThinkPHPRedis
安装phpredis扩展可以参考另一篇博客这里将两种方式1.usethink\Facade\Cache;使用这种方式需要修改app\config\cache.php最后的效果port,expire根据自己实际情况修改,这里只是作为例子写一个方法注意use的是think\Facade\Cache,如果usethink\Cache,会提示Cache没有静态方法storestore里写的缓存类型,我们看
- ThinkPHP5使用Redis
Echo_wan
thinkphp5.0redis使用安装redis扩展redis使用过程出现的问题
1.ThinkPHP框架本身存在Redis类2.在控制器中,引入redis类,usethink\cache\driver\Redis,实例化redis类3.发现报错,是因为ThinkPHP5没有添加redis扩展4.在localhost:8080中,找到phpinfo();(当然,也可以直接:http://localhost:8080/?phpinfo=-1)5.查找redis,如图,存在则说明有
- ThinkPHP5中使用redis
愿做七秒鱼
phpredisredis队列列表
文章目录配置redis使用string(字符串)Hash(哈希)List(列表)Set(集合)zset(有序集合)前提:因为本文主要围绕着在thinkPHP5中使用redis的,所以关于redis的安装就不特意说明了,不过在这稍微提醒一下,安装完redis后务必要开启php.ini扩展,否则还是无法使用redis的。配置会用ThinkPHP5的同学们都知道,TinkPHP5中封装了缓存类,我们只需
- Thinkphp5.0.23远程代码执行漏洞复现
大象只为你
跟我学网安知识命令执行网络安全漏洞复现
★★免责声明★★文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与学习之用,读者将信息做其他用途,由Ta承担全部法律及连带责任,文章作者不承担任何法律及连带责任。1、漏洞介绍使用Thinkphp5.x远程代码执行漏洞,无需登录即可执行任意命令,获取服务器最高权限。漏洞影响范围:5.x">info.php提交后访问:http://192.168.242.4:8080/info.php,发现解析成
- 【PHP】TP5.0模型关联搜索查询
zzoood
phpTP5phpsql数据库
在ThinkPHP5.0中,模型关联为我们提供了一种便捷的方式来操作数据库,尤其是在进行关联查询时。本文将介绍如何在TP5.0中使用模型关联进行搜索查询,并解决可能出现的报错问题。一、模型方法在TP5.0中,模型方法是实现关联的关键。以下是一个示例,展示了如何关联到user表:/***关联user表*/publicfunctionuser(){return$this->belongsTo(User
- thinkphp mysql cache_thinkPHP5框架数据库连贯操作之cache()用法分析
星光心理工作室
thinkphpmysqlcache
本文实例讲述了thinkPHP5框架数据库连贯操作之cache()用法。分享给大家供大家参考,具体如下:介绍TP5中自带的缓存系统,是File型缓存。也就是文件型缓存。存储地址是:根目录..untimecache(根目录指public)。这个缓存系统相较于redis,memcached肯定有局限性的,自动更新以及缓存数据的复杂程度上有区别。但是对于一些简单的查询等还有很有帮助的。比如文章等这些内容
- thinkphp mysql cache_TP5之Cache的原理及使用 - thinkphp5.0
weixin_39611546
thinkphpmysqlcache
使用TP5做为项目后台接口,在二级目录下配置nginx1、首先,你要确保在不配置二级目录的情况下,可以通过浏览器访问到。例如:http://www.example.com/End/public/index.php?s=index/index/index2、将下面一location进行二...在当今大流量的互联网之中,Cache的重要性不言而喻。ThinkPhp5作为国内主流框架,提供了强大的Cac
- thinkphp mysql cache_thinkPHP5框架数据库cache()用法
马老鼠的狗鸭子
thinkphpmysqlcache
本文主要介绍了thinkPHP5框架数据库连贯操作之cache()用法,结合实例形式分析了thinkPHP5中缓存cache的应用场景及连贯操作中cache的设置、更新、删除等操作技巧,需要的朋友可以参考下,希望能帮助到大家。介绍TP5中自带的缓存系统,是File型缓存。也就是文件型缓存。存储地址是:根目录\..\runtime\cache(根目录指public)。这个缓存系统相较于redis,m
- 寒假学习第11天--中间件漏洞--vulhub--thinkphp全系列
fann@qiu
学习安全
提示:所分享内容仅用于每一个爱好者之间的技术讨论及教育目的,所有渗透及工具的使用都需获取授权,禁止用于违法途径,否则需自行承担,本作者不承担相应的后果。文章目录1.ThinkPHP2.x任意代码执行漏洞2.ThinkPHP3.x日志泄露漏洞3ThinkPHP55.0.23远程代码执行漏洞4.ThinkPHP55.0.20远程代码执行漏洞总结1.ThinkPHP2.x任意代码执行漏洞漏洞成因:Thi
- BUUCTF-Real-[ThinkPHP]5-Rce
真的学不了一点。。。
漏洞复现与研究网络安全
1、ThinkPHP检测工具https://github.com/anx0ing/thinkphp_scan漏洞检测通过漏洞检测,我们发现存在rce漏洞!2、漏洞利用----[!]Name:Thinkphp55.0.22/5.1.29RemoteCodeExecutionVulnerabilityScript:thinkphp5022_5129.pyUrl:http://node5.buuoj.c
- TP5的对象变量的依赖注入
傲娇的泰迪
1、依赖注入:改变了使用对象前,必须先创建对象的传统方式,而是从外部注入所依赖的对象;2、ThinkPHP5依赖注入主要是指把对象注入到可访问控制器;3、注入方式:控制器的构造方法和操作方法;4、实现方式:对参数进行对象类型约束则会自动触发依赖注入,自动实例化该对象;参数传入方式接下来是主角:在index.php文件中:request=Request::instance()}publicfunct
- ThinkPHP5和ThinkPHP6的区别
这货不是陈进坚
PHPphpthinkphp6
本文作者:陈进坚个人博客:https://jian1098.github.ioCSDN博客:https://blog.csdn.net/c_jian简书:https://www.jianshu.com/u/8ba9ac5706b6联系方式:
[email protected].安装方式thinkphp6只能通过composer安装composerconfig-grepo.packagistcompos
- 【PHP】在ThinkPHP 5.0中设置缓存以提高性能
zzoood
phpphp缓存开发语言
在ThinkPHP5.0中,您可以使用Cache类来设置缓存,以提高应用程序的性能。缓存可以减少对数据库的访问次数,从而提高应用程序的响应速度。首先,确保您已经在config.php文件中启用了缓存。在config.php文件中,将cache配置项设置为true:return[//...'cache'=>true,//...];接下来,我们将使用您提供的代码示例来设置缓存。在这个示例中,我们将缓存
- php 发送邮件 tp5,ThinkPHP5.1发送邮件(PHPMailer带附件)
捂脸人
php发送邮件tp5
用thinkPHP5.1发送邮件,为方便项目前后台都可调用,我这边写在了common.php里(application/common.php)先切换到项目根目录,然后composer安装sdk,composerrequirephpmailer/phpmailer然后在common.php里引入:usePHPMailer\PHPMailer\PHPMailer;/***@functionsendEm
- php邮件发送tp,Thinkphp5 邮件发送Thinkphp发送邮件
时间礼堂
php邮件发送tp
在项目的开发中用户修改密码,需要发送验证码到用户邮箱,在common.php公共文件中加入以下代码:/***系统邮件发送函数*@paramstring$tomail接收邮件者邮箱*@paramstring$name接收邮件者名称*@paramstring$subject邮件主题*@paramstring$body邮件内容*@paramstring$attachment附件列表*@returnboo
- php断续上传大文件,附加又拍云上传实例
红尘一落君莫笑
序言:我们上传大文件的时候,往往会上传失败。对多数情况下,修改配置文件即可使用。可是这样往往不能很好的解决对于大型文件的上传。比如1GB的视频文件。这时候就需要我们将文件切分成一个个小文件来上传。最后在进行重新的整合。以thinkphp5.1为例:我们设定一个场景:我需要上传一个大于1G的音频、或者视频文件,并且要上传到第三方服务器。那么、第一步:我们需要将资源文件切片先上传到自己的服务器上,然后
- thinkphp5 修改全局异常处理方式
tangzhentian
//异常处理handle类留空使用\think\exception\Handle'exception_handle'=>'',默认是\think\exception\Handle是框架默认的处理方式要修改默认的显示方式,定义一个类继承\think\exception\Handle,重写render()方法,然后修改配置文件'exception_handle'=>'命名空间\类名称',(app\li
- 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