根据id查询数据库中的一个内容: 1.连接数据库 2.编写带?的sql语句 3.预编译 4.填充占位符 5.执行操作 6.if判断是否有值,打印输出 7.关闭驱动 示例: package cn.kgc.crud; import cn.kgc.entity.User; import cn.kgc.ut ...
分类:
数据库 时间:
2020-06-27 11:57:10
阅读次数:
154
nginx配置http块中增加 client_max_body_size 200m; php-fpm的php.ini配置文件中增加: upload_max_filesize = 200M 如果不知道fpm下的php.ini在哪,可以直接grep upload_max_filesize -R /etc ...
分类:
Web程序 时间:
2020-06-26 23:57:29
阅读次数:
123
最近尝试用WPF重新编写之前用WinForm编写的应用程序,在使用中,需要从数据库查询到一系列数据库,在前台DataGrid里面显示出来。 后台 : using System; using System.Collections.Generic; using System.Linq; using Sy ...
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo ...
分类:
Web程序 时间:
2020-06-26 20:02:21
阅读次数:
61
这篇文章介绍下mybatis的一级缓存的生命周期 一级缓存的产生 一级缓存的产生,并不是看mappper的xml文件的select方法,看下面的例子 mapper.xml <select id="getById" resultType="entity.TempEntity"> select * fr ...
分类:
其他好文 时间:
2020-06-26 18:26:34
阅读次数:
42
JDK 8 提供的重要函数式接口: Consumer (消费者) 功能:接收一个对象,返回void。 定义:void accept(T t) 默认方法:Consumer andThen(Consumer after) Supplier (提供者) 功能:不接收参数,返回一个对象。 定义:T get( ...
分类:
其他好文 时间:
2020-06-26 01:09:14
阅读次数:
70
1. c#容器。及性能比较。 https://blog.csdn.net/chen8238065/article/details/47018271/ 2. IList list 3. AddRange() 4. var关键字 5. list的linq操作 https://www.cnblogs.co ...
C# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HelloWorld { class Program { static void Main(strin ...
分类:
编程语言 时间:
2020-06-25 20:00:13
阅读次数:
93
#说明
该工程演示如何上传、展示和删除文件
页面引擎采用Thymeleaf
后端使用Spring Boot
文件上传使用Form提交方式(而不是Ajax方式或VUE前后端分离) ...
分类:
编程语言 时间:
2020-06-25 19:31:16
阅读次数:
85
《FPGA原理与设计》课程实验教学大纲 一、实验的目的与任务: FPGA原理与设计是电子信息类和电气类专业本科生的一门学科选修课程,FPGA原理与设计实验是学习本课程的一个重要环节。通过本课程的教学,使学生了解VHDL语言的特点,掌握Quartus II的使用方法,掌握VHDL基本语法及常用的逻辑电 ...
分类:
其他好文 时间:
2020-06-25 19:14:57
阅读次数:
97