什么是MyBatis?MyBatis是一款优秀的持久层框架,它支持定制化SQL、存储过程以及高级映射。MyBatis避免了几乎所有的JDBC代码和手动设置参数以及获取结果集。MyBatis可以使用简单的XML或注解来配置和映射原生信息,将接口和Java的POJOs(PlainOldJavaObjects,普通的Java对象)映射成数据库中的记录。(这是官网解释)MyBatis运行原理当框架启动时,
分类:
其他好文 时间:
2020-07-14 10:35:32
阅读次数:
43
1.配置文件代码(需要配置稳健获取内容、以及文件存储地方’) # coding=utf-8 import warnings class DefaultConfigs(object): env = 'default' model_name = "resnet" # 训练模型:活参数 #base_fol ...
分类:
其他好文 时间:
2020-07-10 15:19:40
阅读次数:
94
import warnings from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from .remote_connection import ChromeRemoteConnection fro ...
分类:
其他好文 时间:
2020-07-10 11:25:17
阅读次数:
76
一、Junit单元测试 1.1 测试分类: 黑盒测试:不需要写代码,给输入值,看程序是否能够输出期望的值。 白盒测试:需要写代码的。关注程序具体的执行流程。 1.2 Junit使用(白盒测试) 使用步骤: 定义一个测试类(测试用例) 测试类名:被测试的类名Test,如 CalculatorTest ...
分类:
其他好文 时间:
2020-07-03 00:41:13
阅读次数:
56
[root@pxc2 ~]# cat /root/master_ip_failover #!/usr/bin/env perl use strict;use warnings FATAL => 'all'; use Getopt::Long; my ( $command, $ssh_user, $o ...
分类:
其他好文 时间:
2020-06-29 13:51:34
阅读次数:
113
#配置Mariadb日志 日志有6种,分别是查询日志(general_log),慢查询日志(log_slow_queries),错误日志(log_error,log_warnings),二进制日志(binlog),中继日志(relay_log)和事务日志(innodb_log) #查询日志 日志存储 ...
分类:
数据库 时间:
2020-06-29 09:48:11
阅读次数:
55
import requests import re import time import base64 import json import sys import re from urllib3 import disable_warnings from urllib3.exceptions impo ...
分类:
其他好文 时间:
2020-06-27 11:20:08
阅读次数:
122
1.通过WebApplicationUtils工具类获取,使用该方法的必须依赖Servlet容器。 方法如下: ApplicationContext ap = WebApplicationUtils.getWebApplicationContext(servletContextParam) 其中se ...
分类:
移动开发 时间:
2020-06-26 14:42:41
阅读次数:
69
编写代码实质是通过指令对计算机内存进行操作,计算机的硬件设备往往十分有限,尤其是内存。如何使有限的存储空间利用效率达到最大,成为了代码优化首先要考虑的事情。 比如,输入三个数比较大小并输出最小值。下面写段代码: 使用条件语句嵌套比较 #define _CRT_SECURE_NO_WARNINGS # ...
分类:
其他好文 时间:
2020-06-24 21:50:16
阅读次数:
56
import warnings warnings.filterwarnings('ignore') import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns Matplot ...
分类:
其他好文 时间:
2020-06-15 11:52:10
阅读次数:
60