Struts2:框架: 简化MVC模型,节省开发时间; struts.properties定义好的名称有很多,不能随意改动:如: 如: 也可用struts.xml里的constant用来自定义我们自己开发用的; 如: struts.xml文件案例解读: include标签: package: int ...
分类:
其他好文 时间:
2020-03-31 17:21:27
阅读次数:
64
今天看见一个烧脑的代码,一时没看懂结果,刨个坑,看懂填 def product(*args, repeat=1): pools = [tuple(pool) for pool in args] * repeat result = [[]] for pool in pools: result = [x ...
分类:
其他好文 时间:
2020-03-31 14:37:53
阅读次数:
48
struts2配置常量有3种方式 1,在配置文件配置Struts2.xml里 例如:<constant name="struts.action.extension" value="do" /> 2,在struts.properties里配置 例如: 3,在web.xml里配置 例如: ...
分类:
其他好文 时间:
2020-03-30 19:24:58
阅读次数:
65
一 包介绍 例: 强调: 使用: 二 包的使用 导入包与__init__.py 包属于模块的一种,因而包以及包内的模块均是用来被导入使用的,而绝非被直接执行,首次导入包(如import pool)同样会做三件事: 1、执行包下的__init__.py文件 2、产生一个新的名称空间用于存放__init ...
分类:
编程语言 时间:
2020-03-29 19:42:03
阅读次数:
62
1:mybatis的概述 mybatis是一个持久层框架,用java编写的。 它封装了jdbc操作的很多细节,使开发者只需要关注sql语句本身,而无需关注注册驱动,创建连接等繁杂过程 它使用了ORM思想实现了结果集的封装。 2:mybits入门案例:使用mybits进行最简单的查询(sql:sele ...
分类:
其他好文 时间:
2020-03-29 14:15:23
阅读次数:
85
glassfish.update_connector_c_pool Update a connection pool glassfish.update_jdbc_resource Update a JDBC resource glassfish.enum_connector_resource Enu ...
分类:
其他好文 时间:
2020-03-28 21:48:37
阅读次数:
71
调用预训练模型ResNet18时报错:RuntimeError: Given input size: (512x3x3). Calculated output size: (512x-3x-3). Output size is too small at /opt/conda/conda-bld/py ...
分类:
其他好文 时间:
2020-03-28 15:03:12
阅读次数:
590
InnoDB Notes Incompatible Change: The InnoDB storage engine can no longer be disabled. The --skip-innodb option is deprecated and has no effect, and i ...
分类:
数据库 时间:
2020-03-27 21:26:41
阅读次数:
97
vthread中包含两个类: vthread.vthread.pool vthread.vthread.thread 其中class pool的原型如下: class pool(builtins.object) pool(pool_num=None, gqueue=0, join=False, lo ...
分类:
编程语言 时间:
2020-03-26 20:04:06
阅读次数:
99
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. Colle ...
分类:
其他好文 时间:
2020-03-26 14:04:24
阅读次数:
288