使用jpa查询的时候,如果查询不到数据,就会返回这个错误,下面是处理方法。 @Override public User findByEmail(String email) { User user = new User(); user.setEmail(email); Example<User> ex ...
分类:
编程语言 时间:
2019-11-06 17:03:24
阅读次数:
174
[Hdu3887]Counting OffspringYou are given a tree, it’s root is p, and the node is numbered from 1 to n. Now define f(i) as the number of nodes whose nu ...
分类:
编程语言 时间:
2019-11-04 21:37:38
阅读次数:
98
课上内容(Lesson) 1. We played "Who is spy" together 2. Which county do you like it, let us make a choice. 3. We made use of picturea for a story , about a ...
分类:
其他好文 时间:
2019-11-03 18:35:30
阅读次数:
140
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().i... ...
分类:
移动开发 时间:
2019-11-03 18:24:55
阅读次数:
157
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present.// getMenuInflater()... ...
分类:
移动开发 时间:
2019-11-03 16:31:21
阅读次数:
88
本文将再次使用我自制的“准游戏引擎”FlysEngine,从空白窗口开始,演示如何“手撸”2048小游戏,并在编码过程中感受`C#`的魅力和`.NET`编程的快乐。 ...
分类:
Web程序 时间:
2019-11-03 11:09:37
阅读次数:
148
运维自动化神器ansible之ping模块一、概述 ping模块用来检测节点连通性。 二、参数介绍 name:用于指定操作的user,必须项。RETURNVALUES:ping:description:valueprovidedwiththedataparameterreturned:successtype:strsample:pong三、参数详解 下列英文
分类:
其他好文 时间:
2019-11-02 23:38:54
阅读次数:
155
官方文档:http://www.codeisbug.com/Doc/8/1159二: 返回指定列匿名类集合 var data = db.Queryable() .Select(f => new { f.ID, f.Name }).ToList(); /* 生成SQL: SELECT [ID] AS ... ...
分类:
数据库 时间:
2019-10-31 23:22:02
阅读次数:
1382
# 前言 Postman目前是一款很火的接口测试工具,它有着非常强大结果判断能力。 为什么说强大呢,因为Postman有自带的校验脚本,根本不需要我们去学习JS脚本语言,对于代码能力为0的各位测试小伙伴来说,特别的友好。 ![](/uploads/photo/2019/4cfd7a5e-86f9-4 ...
分类:
其他好文 时间:
2019-10-29 21:26:09
阅读次数:
80
常用命令 help 输入: help help 输出: help: help [ dms] [pattern ...] Display information about builtin commands. Displays brief summaries of builtin commands. ...
分类:
系统相关 时间:
2019-10-25 23:16:30
阅读次数:
96