51CTO博客开发
<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"> <property name="providerClass" value="org.hibernate.validator.HibernateValidato
1,需要下载memcahced-session-manager.jar 和对应的memcached-session-manager-tc8-1.8.1.jar memcached-session-manager 使用spymemcached-2.10.2.jar链接memcache.将下载的三个jar文件放到tomcat/lib目录下。2,tomcat/conf目录下的contex
/** * 获取对象中的字段 * @param obj which object you want to find filed * @param fieldName the field name you want to find * @return the field you want to find * @throws Throwable * @throws NoSuchField
;递归 (defun my-fib (x) (cond ((= x 0) 0) ((= x 1) 1) (t (+ (my-fib (- x 1)) (my-fib (- x 2)))))) (defun my-fib-iter (a b count) ;(format t "a:~a and b:~a and count:~a ~%" a b count)
附上源码地址 https://github.com/livvyguo/app-blog
书中的scheme实现如下:(define (square x) (* x x)) (define (abs x) (if (< x 0) (- x) x)) (define (average x y) (/ (+ x y) 2)) (define (improve guess x) (average guess (/ x guess))) (define (
spring的配置文件中加入以下内容<!-- MyBatis配置 --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="c3p0DataSource" />
工作之余,用java写了一个导出数据库结构的小工具
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号