- 博客(22)
- 资源 (8)
- 收藏
- 关注
原创 学习eclipse插件的第一天
1、打开eclipse,点击File->New->Opther,输入plugin,发现不能新建插件,然后点击Help->Install New Software,输入http://download.eclipse.org/releases/photon/201806271001,找到General Purpose Tools 下的Eclipse Plug-in Develomen...
2019-12-17 21:18:07
175
原创 Can not deserialize value of type java.sql. Timestamp或者 LocalDateTime from String "NaN-aN-aN a
用时间查询的时候遇到报这个错误的:msg: JSON parse error: Can not deserialize value of type java.sql. Timestamp或者LocalDateTime from String "NaN-aN-aN aN:aN:aN": not a valid representation (error: Failed to pa...
2019-11-12 22:19:53
903
原创 当需要两个字段唯一的时候(插入)
当需要两个字段唯一的时候(插入)方法一(数据库):直接在数据库中的对应表格设定那两个字段一起唯一。方法二(代码):/** *添加用户 * @Param deptLeader批量添加用户 * @return */ @Override @Transactional(rollbackFor = Exception.class) public Boolean add...
2019-11-06 22:38:13
617
原创 批量删除和增加
Controller层: /** * 添加用户 * @return */ @ApiOperation(value = "添加用户", notes = "添加用户") @PostMapping("/addUser") public R addUser(@RequestBody List<SysDeptLeader> deptLeader){ return R...
2019-11-03 11:11:40
355
原创 orcl忘记口令解决办法,ora-01031:insufficient privileges,ora-28000:the account is locked
今天突然想起数据库原理实验还没写,然后密码忘记了,打开cmd输入sqlplus / as sysdba,结果报ora-01031:insufficient privileges,解决方案:1、先输入net user查看当前系统用户2、输入net localgroup查看用户组3、输入net localgroup ora_dba查看用户组当前的用户,你会发现没有你的系统用户4、...
2019-11-01 23:34:12
409
原创 serviceImpl层测试模拟用户
@RunWith(PowerMockRunner.class)@PowerMockRunnerDelegate(SpringRunner.class)@PowerMockIgnore({"javax.management.*", "javax.net.ssl.*"})@PrepareForTest({SecurityUtils.class})@SpringBootTestpublic...
2019-11-01 21:39:40
512
原创 根据角色id查询菜单的名字
@ApiOperation(value = "角色的菜单集合", notes = "返回角色的菜单集合") @GetMapping("/tree/roleId/name") public R getRoleByRoleId(@RequestParam("roleId") @NotNull(message = "roleId不能为空") Integer roleId) { return ...
2019-11-01 21:37:28
887
原创 部门数以及部门下面的管理人(也可以说是员工)
controller层: /** * 返回树形菜单集合 * * @return 树形菜单 */ @ApiOperation(value = "树形菜单集合", notes = "返回树形菜单集合") @GetMapping(value = "/tree") public R getTree() { return R.ok(sysDeptService.select...
2019-11-01 21:34:16
309
原创 文件上传时一直传不起,然后用调试发现F前面多了一个斜杠“/”
文件上传时一直传不起,然后用调试发现F前面多了一个斜杠“/”,这种用截取正确的方法在下面加一个:filesPath=filesPath.substring(1);
2019-07-10 15:48:52
453
原创 Failed to configure a DataSource url attribute is not specified and no embedded datasource的解决办法
今日遇到的问题解决方案:增加@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
2019-06-27 11:21:43
129
原创 1012 数字分类
#include<iostream>#include<iomanip>using namespace std;int main(){ int n,a; int sum=0,sum1=0,sum2=0; int cou=0,cou1=0,cou2=0; int m=0; cin>>n; for(int i=0...
2019-06-21 14:49:57
140
原创 1004 成绩排名
#include<iostream>using namespace std;struct student{ char name[20]; char id[20]; int score;};int main(){ student stu[1001]; int m; cin>>m; for(int i=0;i&...
2019-06-19 21:49:23
109
原创 1041考试座位号
#include<iostream>using namespace std;struct student{ long long id;//char id[18]; int m; int n;};int main(){ student stu[1001]; int a; int b; int c[1001]; c...
2019-06-18 17:33:02
134
原创 1056 组合数的和
#include<iostream>using namespace std;int main(){ int n; cin>>n; int m[1001]; int sum=0; for(int i=0;i<n;i++) { cin>>m[i]; } for(int i=0...
2019-06-18 16:55:03
92
原创 1021 个位数统计
#include<iostream>#include<string.h>using namespace std;int main(){ int n,i,j; char a[1000],m='0'; cin>>a; i=strlen(a); while(m<='9') { n=0;...
2019-05-11 21:13:16
87
原创 1046 划拳
#include<iostream>#include<math.h>using namespace std;int main(){ int a,b; int x,y; int cout1=0,cout2=0; int n; cin>>n; for(int i=0;i<n;i++) { ...
2019-05-11 20:58:39
89
原创 1011 A+B 和 C
#include<stdio.h>int main(){int t;scanf("%d",&t);for(int i=1;i<=t;i++){long long a,b,c;scanf("%lld %lld %lld",&a,&b,&c);if(a+b>c){printf("Case #%d: tr...
2019-05-10 19:23:20
151
原创 1001 害死人不偿命的(3n+1)猜想
#include<iostream>#include<math.h>using namespace std;int main(){int n;while(cin>>n){int cou=0;while(n!=1){if(n%2==0){n=n/2;}else{n=(3*n+1)/2;}cou++...
2019-05-10 19:21:50
114
原创 1006 换个格式输出整数
https://pintia.cn/problem-sets/994805260223102976/problems/994805318855278592#include<iostream>using namespace std;int main(){ int n; int x; int y; int a; int b; whi...
2019-05-10 19:19:38
79
原创 简单计算员工工资和增加员工
company.h#pragma once#pragma once#ifndef COMPANY_H#define COMPANY_H#include "Employee.h"#include<string>#include<vector>class Company{public: Company(string name, string int...
2019-02-09 22:25:02
330
原创 简单判断三角形类型C++
判断三角形类型#pragma once#include<iostream>#include<cmath>using namespace std;class Triangle{public: Triangle(float A, float B, float C); ~Triangle() {} int M(); float ci...
2019-02-09 22:18:12
3545
东方财富网python 爬虫
2019-11-26
汉诺塔演示MFCWindows
2019-11-01
排序演示过程mfc windows
2019-12-31
招财猫方法2.zip
2019-11-26
MFC招财猫西南科技大学
2019-11-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人