案例四:封装共有操作 封装一个数据库的会话的类 点击查看详细代码 import java.sql.*; public class ConnectionUtil { /** * 获取连接对象的方法,返回一个Connection * 方法体中是共有操作:加载驱动,建立连接 */ public stati ...
分类:
数据库 时间:
2021-06-17 17:10:30
阅读次数:
0
springboot自动配置原理深入 要点:springboot的核心配置类中的注解@SpringBootApplication,这是一个核心注解。该注解主要源代码如下 ... import ... @Target({ElementType.TYPE}) @Retention(RetentionPo ...
分类:
编程语言 时间:
2021-06-17 17:10:14
阅读次数:
0
petalinux-build -c bootloader petalinux-build -c bootloader -x distclean petalinux-build -c bootloader diff -uNr zynq_fsbl_old zynq_fsbl_new > diff.pa ...
分类:
系统相关 时间:
2021-06-17 17:02:18
阅读次数:
0
import java.util.Scanner; /* Utility工具类: 将不同的功能封装为方法,就是可以通过调用方法使用它的功能,而无需考虑具体的功能实现细节 */ public class Utility{ private static Scanner = new Scanner(Sys ...
分类:
其他好文 时间:
2021-06-17 16:47:45
阅读次数:
0
一、借助lombok之@Builder注解 User类源码: package com.yang.webflux.controller; import lombok.Builder; /** * @author: Yang * @date: 2017/3/26 23:55 * @description ...
分类:
编程语言 时间:
2021-06-17 16:46:29
阅读次数:
0
需求:获得图纸上的尺寸属于哪个视图和图纸页 今天看到有个兄弟问了这个问题,这个需求,我以前给公司开发的工具中用到过。 但以前好像是忘记写到博客上了,今天专门记录一下。 NX9+VS2012 #include <uf.h> #include <uf_draw.h> #include <uf_drf.h ...
分类:
其他好文 时间:
2021-06-17 16:42:49
阅读次数:
0
订阅发布机制 github地址: https://github.com/mroderick/PubSubJS import PubSub from 'pubsub-js' // or when using CommonJS const PubSub = require('pubsub-js'); / ...
分类:
其他好文 时间:
2021-06-17 16:36:50
阅读次数:
0
实验任务三 1.正确输出,且生成了file3.dat 2.是正确的,且直观可读 实验任务四 1.正确输出,生成了file4.dat,且用记事本打开直观可读 2. #include <stdio.h> #include <stdlib.h> typedef struct student{ int nu ...
分类:
其他好文 时间:
2021-06-17 16:34:46
阅读次数:
0
#include <stdio.h> #include <string.h> #include <stdint.h> #include <errno.h> #include <sys/queue.h> #include <rte_launch.h> #include <rte_eal.h> #inc ...
分类:
其他好文 时间:
2021-06-17 16:28:03
阅读次数:
0
元字符 元字符指的是能够被shell解释的特殊字符,每个特殊字符都有其特殊含义,这些字符一方面可用于变量值的运算、我们可以称之为运算符,另外一方面可以和shell命令配合使用来达到更高级的效果 算数运算符 运算符 - / % 算数运算符需要配合下述操作使用 # 浮点运算 bc # 整数运算 expr ...
分类:
其他好文 时间:
2021-06-16 18:34:56
阅读次数:
0