- 博客(28)
- 收藏
- 关注

原创 关于MySQL数据库时间比较
一张表内的时间类型是date类型(2016-10-01),另一张表中的时间类型是Varchar类型(201612),这两个时间进行比较,即 varchar1 首先用date_format方法把date类型转换成年月的格式,如下:date_format(dayamount.dayDate,'%Y-%m')然后用STR_TO_DATE方法把String类型转成date类型,即STR_TO_DA
2016-11-28 14:41:15
966

原创 用AngularJS做登录和注册成功后的页面跳转并传参数
当应用需要在内部进行跳转时是使用 $location 服务的最佳场景,比如当用户注册后、修改或者登录后进行的跳转。用 $location ,var RegistMall = angular.module("YunAD",["ngResource"],["ngRoute"]);//定义路由 RegistMall.config(['$routeProvider', funct
2016-11-04 10:25:41
7903
4
原创 MySql ERROR 1046: No Database Selected
执行sql时发现1046error将下图红色椭圆形地方选择对应的db即可
2020-05-27 17:32:56
522
原创 Postman小白接口报文格式入坑
格式是“Text”格式的时候,有任何问题不会提示:可以成功执行,导致我想要的结果有问题。但是当改成json格式:就会发现有报错。
2020-05-15 15:48:23
1805
原创 Android Studio------Error:module not specified
关于这个问题,对于菜鸟来说真的是太难了!特别是不懂Andriod Studio中Module的概念的情况下,完全抓瞎,直接搜索“Andriod Studio Module not specified”,找到的处理方法都无法解决这个问题。问题背景,由于昨天环境在第三遍安装Andriod Studio结束后app能够正常执行(捣鼓完了),今天完全是因为手残,手动把modual给删除了。。。...
2020-04-14 18:47:01
951
原创 菜鸟のPython之路
1.下载安装Python(网络上有详细的步骤),需要配置环境变量2.Python安装MyQR库:在windows cmd终端下运行pip install MyQR命令,然后会自动安装MyQR、inmageio、numpy、pillow库,并给出版本。可能会有提示信息【WARNING: You are using pip version 19.2.3, however version 20....
2020-04-14 18:27:24
254
原创 VSCode运行Vue,vue : The term 'vue' is not recognized as the name of a cmdlet, function, ......
PS C:\Users\inverter> vue init webpack testvue : The term 'vue' is not recognized as the name of a cmdlet, function, scriptfile, or operable program. Check the spelling of the name, or if a path ...
2020-04-09 14:21:28
9874
2
原创 postgreSQL相关
JDBC连接数据库教程,以postgreSQL为例https://blog.youkuaiyun.com/caihuangshi/article/details/51265324postgre- 常用基本sql 语句https://blog.youkuaiyun.com/luxideyao/article/details/50408347PostgreSQL 数据类型https://blog.youkuaiyun.com/...
2019-01-30 14:39:24
210
原创 关于MongoDB的安装配置与使用
安装方法很简单,注意安装时有一个画面左下角的选项不要勾选,不然需要很长时间才可安装好。Windows Server 2008:安装后MongoDB服务启动失败,参照以下链接方法:https://blog.youkuaiyun.com/su749520/article/details/78984773下载安装VC redit.exe即可。Windows Server 2012 R2:你会发现安装VC...
2019-01-10 09:39:51
253
原创 关于用户表的用户权限是分为一张表还是多张表
简单设计:管理员和用户实际上都是“用户”,之后用户里面有个用户标识,之后来区分管理员和普通用户就可以。如:管理员的唯一标识是1,其他用户的标识为2。正常设计,用户和权限肯定是分表设计的,之后通过用户的id来进行表间的关联更科学。(请参照用户、角色、权限表的关系(mysql)https://blog.youkuaiyun.com/harbor1981/article/details/78149203)...
2018-12-24 10:53:23
3632
原创 HBuilder常用快捷键总结大全
此文章摘自https://blog.youkuaiyun.com/xiaomobeila/article/details/54945844 HBuilder常用快捷键大概共9类(【4 13 3】文件、编辑、插入;【4 9 8】选择、跳转、查找;【1 1 6】运行、工具、视图)1.文件(4) 新建 Ctrl + N 关闭 Ctrl + F4 全部关闭 Ctrl + Shift + F4 属性...
2018-11-28 09:10:59
1216
1
原创 N1文法11~15
11 ~(よ)うとも/くとも 无论。。。都。。。;即使。。。也。。。 接続 動意向形 接とも イ形ーく 母はどんなに辛くとも、決してがちをいわなっ...
2018-08-10 15:52:22
3602
原创 日语N1文法6~10
6 今ひとつ~ない 今一~ない 还差一点;还有欠缺 わだい はくりょく 昨日、話題のその映画を見たが、今ひとつ迫力が足りない気がした。 ...
2018-08-09 10:06:55
754
原创 日语N1语法1~5(日语能力考,蓝宝书)
1 ~あっての 正因为有了A才有了B的存在 せつぞく 接続 名A+(が)あっての+名B おんじん ...
2018-08-08 21:35:50
4829
原创 Spring MVC无法映射的问题
今天写C层遇到了这个问题,Ambiguous mapping found. Cannot map 'basicInfoContorller' bean method后来发现是因为这个Controller里边的一个@RequestMapping()方法名称跟另一个Controller里的@RequestMapping()方法重名了,建议在方法名称前再加一个名称/user/updateUser,这
2016-11-16 13:04:38
1016
原创 定义路由
//定义路由 /* RegistMall.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/login',{ controller: 'RegistMallCtrl', //reloadOnSea
2016-11-09 16:16:47
462
原创 HQL时间段查询
public String getAnnual() {Date date = new Date();String dateStr = new SimpleDateFormat("yyyyMM").format(date);Session session = CommonSessionFactory.getSession();String year = null;String h
2016-11-08 20:35:58
767
原创 关于AngularJS去掉的URL里的#号
http://blog.fens.me/angularjs-url/原文URL的#号问题使用AngularJS的朋友都应该了解,AngularJS框架定义了自己的前端路由控制器,通过不同URL实现单面(ng-app)对视图(ng-view)的部署刷新,并支持HTML5的历史记录功能,详细介绍可以参考文章:AngularJS路由和模板。对于默认的情况,是不启动HTML5模式的
2016-11-07 13:26:44
637
原创 AngularJs $location获取url参数
http://blog.gaoqixhb.com/p/5677fb7c6a55cd573cb30db2有时候遇到需要在url上给angular传参的情况,这种时候可以用$location.search()方法来获取// 带#号的url,看?号的url,见下面url = http://qiaole.sinaapp.com?#name=cccccc$location.absU
2016-11-07 13:23:42
8372
3
原创 用ng-pattern加入正则表达式,一直报错
Error: [$parse:lexerr] Lexer Error: Unexpected next character at columns 1-1 [^] in expression [/^(?![A-Z]+$)(?![a-z]+$)(?!\d+$)(?![\W_]+$)\S+$].http://errors.angularjs.org/1.5.6/$parse/lexerr?p0=U
2016-11-02 15:40:05
6792
3
原创 SpringMVC @RequestBody 自动转json Http415错误
The server refused this request because the request entity is in a format not supported by the request原因是在前台JS中传值写错了,将要传的值全部写在大括号内$http.post("../loginActionToJson.action", {"loginId" : userDetai
2016-10-31 16:20:17
791
原创 jQuery报错:Uncaught ReferenceError: $ is not defined
jQuery报错:Uncaught ReferenceError: $ is not defined今天遇到了这个问题,百度说是jQuery库文件的路径不对或者在html中加载jQuery库文件顺序有误,如果将jQuery库文件加载放到最开始位置,即可以解决该错误。我发现没有导入jQuery包,导入jQuery包即可。
2016-10-31 14:56:10
794
原创 用Struts2和Hibernate框架做用户信息更新的时候遇到的问题
HTTP Status 500 - ids for this class must be manually assigned before calling save(): nesj.A0100.FormBean.UserInfotype Exception reportmessage ids for this class must be manually assigned befo
2016-10-28 21:25:43
581
原创 Webstorm常用快捷键
查找/代替快捷键说明ctrl+shift+N通过文件名快速查找工程内的文件(必记)ctrl+shift+alt+N通过一个字符快速查找位置(必记)ctrl+F在文件内快速查找代码F3查找下一个shift+F3查找上一个ctrl+R文件内代码替换
2016-10-28 11:38:11
303
原创 java.lang.IllegalArgumentException: Malformed \uxxxx encoding.解决方法
今天遇到了这样一个问题,还没有解决掉~~~~十月 28, 2016 11:27:37 上午 org.apache.catalina.core.ApplicationContext log严重: StandardWrapper.Throwablejava.lang.IllegalArgumentException: Malformed \uxxxx encoding.at j
2016-10-28 11:35:42
3693
原创 notepad++进行单行、多行、区块注释和取消注释
notepad++进行单行、多行、区块注释和取消注释快捷键如下:单行、多行注释 //方式 :ctrl+k区块注释 / * * /方式 :ctrl+q取消单行、多行、区块注释 :ctrl+shift+k另外可以修改成自己习惯
2016-10-18 14:23:51
10096
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人