ITeye博客

看看我都干了些啥!

crabdave · 共 471 篇文章

将博客搬至CSDN

将博客搬至CSDN 将博客搬至CSDN

2021-09-23 18:02 · 评论(0)

centos 安装php7

yum -y remove php* rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w…

2019-08-10 16:48 · PHP · 评论(0)

MYSQL密码安全

https://www.cnblogs.com/xiaozi/p/10552100.html show variables like 'validate_password%'; set global validate_password.length=1; set global validate_password.mixed_case_count=0; set global validate_password.number_count=0; set global validate_password.special_char_count=0; set global validate_passwo…

2019-08-10 16:34 · MySQL · 评论(0)

JSTL格式化时间戳

JSTL格式化时间戳 参考: http://www.cnblogs.com/wlf-919874006/p/5070997.html <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <jsp:useBean id="dateValue" class="java.util.Date"/> <jsp:setProperty name="dateValue" property="time" value="${timestampValue}"/> <fmt:formatDate value="${dateValue}…

2017-08-02 16:06 · Java · 评论(0)

Mockito 在Spring容器中配置一个mock对象

Mockito 在Spring容器中配置一个mock对象 在单元测试中,解决初始化Spring容器时有些bean依赖的问题 <bean name="testBeanId" class="com.company.testedClass"> <property name="yourService" ref="yourBeanId"/> </bean> <!--mock 引用的对象--> <bean name="yourBeanId" class="org.mockito.Mockito" factory-method="mock"> <constructor-arg value="com.you…

2017-07-20 15:43 · Spring · 评论(0)

Spring CGlib Superclass has no null constructors but no arguments were given

Spring CGlib Superclass has no null constructors but no arguments were given <bean id="beanId" class="com.bean.BeanId"> <!--构造器参数--> <constructor-arg value="BeanId"/> 出现Superclass has no null constructors but no arguments were given异常 改成属性注入 <bean id="beanId" class="com.bean.BeanId"> <!--构造器参数--> <…

2017-07-10 14:48 · Spring · 评论(0)

Spring AOP AspectJ切入点语法详解(比较全面的)

Spring AOP AspectJ切入点语法详解(比较全面的) 参考: http://jinnianshilongnian.iteye.com/blog/1415606

2017-06-27 10:25 · Spring · 评论(0)

Spring配置构造函数的参数

Spring配置构造函数的参数 参考: http://blog.csdn.net/u013473691/article/details/50589021 <bean id="person" class="com.test.Person"> <constructor-arg value="张三"/> <constructor-arg value="20"/> </bean>

2017-06-27 08:44 · Spring · 评论(0)

Spring配置集合列表

Spring配置集合列表 参考: http://blog.csdn.net/wit_tang/article/details/51513186 注意要添加 schema/util <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springfra…

2017-06-27 08:36 · Spring · 评论(0)

常用正则表达式

常用正则表达式 括号内内容:String s_reg="\((.*)\)";

2017-06-01 16:05 · Others · 评论(0)

小顶堆排序Java代码样例

小顶堆排序Java代码样例 import java.util.Arrays; public class MinHeapTopN { // top num private int topN; // top n number array private int[] topNHeap; /** * init * * @param topN * @param unSortedArray */ public MinHeapTopN(int topN, int[] unSortedArray) { this.topN = topN; this.topNHeap = new int[topN]; // i…

2017-05-27 16:54 · Java · 评论(0)

海马玩模拟器 修改host(让hosts生效)

海马玩模拟器 修改host(让hosts生效) 1、先修改文件访问权限 设置--常规设置--访问模式--选择超级用户访问模式 参考: http://jingyan.baidu.com/article/08b6a591a8429414a80922cd.html 2、修改hosts /system/etc/hosts 添加你的访问域名(注意最后加一个回车 也就是多一个\n 这样hosts才生效) 192.168.1.100 www.yourdomain.com 参考: http://www.tuicool.com/articles/zAfq6bv

2017-05-15 17:58 · Others · 评论(0)

windows10获取管理员权限的方法

windows10获取管理员权限的方法 http://www.xitongcheng.com/jiaocheng/win10_article_11454.html gpedit.msc 依次点击打开“计算机配置”选项,然后再找到“Windows设置”这个选项,再从“Windows设置”找到并打开“安全设置”选项,接着打开“本地策略”最后找到打开“安全选项”即可。 找到“账户:管理员状态”,可以看见状态为“已禁用”,我们需要的是将它开启。

2017-05-15 08:08 · Windows · 评论(0)

Spring AOP自定义注解样例

Spring AOP自定义注解样例 参考: http://www.cnblogs.com/shipengzhi/articles/2716004.html @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Ann { String value(); } 注解处理器 public class AnnoSupport { /** * 处理过程 * @param joinPoint AOP切入点 * @return * @throws Throwable */ public Objec…

2017-05-08 15:28 · Spring · 评论(0)

Spring中获取ApplicationContextt.xml配置文件的接口

Spring中获取ApplicationContextt.xml配置文件的接口 参考: http://www.blogjava.net/xcp/archive/2011/06/22/352821.html // Resource resource = new ClassPathResource("appcontext.xml"); // BeanFactory factory = new XmlBeanFactory(resource); // 用classpath路径 // ApplicationContext factory = new ClassPathXmlApplicationCo…

2017-05-08 12:11 · Spring · 评论(0)