需求:输入一个数,判断其类型(完全数,过剩数,不足数) 完全数:自身之外所有因数和==自身 过剩数:自身之外所有因数和>自身 不足数:自身之外所有因数和<自身 测试类: ...
分类:
编程语言 时间:
2017-06-24 09:54:41
阅读次数:
196
本章主要学习结构性设计模式,前一章介绍的创建型设计模式侧重于对象的处理,而结构型设计模式则有助于把多个对象整合为一个更大型的、更有组织的代码库。它们具有灵活性,可维护性,可扩展性,并能够确保当系统中的某一部分发生变更时,不必完全重写其余部分进行适应。结构型模式还可用于帮助我们与其他代码结构(在我们的 ...
分类:
编程语言 时间:
2017-06-23 15:28:53
阅读次数:
179
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd ...
分类:
其他好文 时间:
2017-06-23 13:00:43
阅读次数:
129
一、创建hibernate实体映射文件。 在实体所在包创建映射文件product.hbm.xml,引入hibernate的映射约束。(该约束位于hibernate3.jar里面hibernate-mapping-3.0.dtd,可cope使用)如下图: product.hbm.xml: 二、利用sp ...
分类:
编程语言 时间:
2017-06-21 22:55:01
阅读次数:
220
在Tomcat的根目录中放入一张图片...webapps\ROOT\people,jpg,利用手机和服务器交互j获取这个图片,桌面布局就是简单的线性布局,代码:<TextView android:textSize="25dp" android:text="服务器图片的地址:" android:lay ...
分类:
移动开发 时间:
2017-06-20 20:19:48
阅读次数:
172
mybatis 调用执行存储过程 mysql 声明建立存储过程 删除 在mysql中调用 -- 声明定义存储过程 delimiter $$ create procedure delbook(id int) begin delete from book where book_id=id; end$$ ...
分类:
其他好文 时间:
2017-06-20 20:18:32
阅读次数:
277
Both stop and PoisonPill will terminate the actor and stop the message queue. They will cause the actor to cease processing messages, send a stop call ...
分类:
其他好文 时间:
2017-06-20 10:57:16
阅读次数:
133
参考资料: http://blog.csdn.net/zhangerqing/article/details/8194653 http://www.iteye.com/problems/35251 http://www.cnblogs.com/hxsyl/archive/2013/03/19/296 ...
分类:
编程语言 时间:
2017-06-20 01:02:27
阅读次数:
307
### 准备 ## 目标 ## 目标 了解 Spring AMQP 核心代码 ## 前置知识 RabbitMQ 入门 ## 相关资源 Quick Tour for the impatient:<http://docs.spring.io/spring-amqp/docs/1.7.3.RELEASE/ ...
分类:
编程语言 时间:
2017-06-20 01:01:43
阅读次数:
381
发布网站至IIS-附加到进程调试 Internet Information Services(IIS,互联网信息服务),是由微软公司提供的基于运行Microsoft Windows的互联网基本服务。 一:发布项目。 1.点击启动项目右键发布,选择自定义。 2.填写配置文件名称 3.选择File Sy ...
分类:
系统相关 时间:
2017-06-20 00:21:51
阅读次数:
1439