摘要:
没记得做过什么,突然用Navicat连接mysql的时候遇到了这个错误,第一感觉是360把我的mysql删了,后来找了一下还在。在cmd里输mysql -uroot -p***也能登进去。但是我Navicat也是在用root登啊,怎么回事呢?具体原因没搞清楚,但是select user,host f 阅读全文
摘要:
PageInfo getPageInfo(int pageNum, int pageSize, List<Map> list) { Page page = new Page(pageNum, pageSize); int total = list.size(); if (total > pageSi 阅读全文
摘要:
首先写一个Quartz的简单例子: 1.新建一个maven项目,pom.xml中加入quartz的依赖: <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.3 阅读全文
摘要:
URI URI(Uniform Resource Identifier)即统一资源标识符,是一个用于标识某一互联网资源名称的字符串。以联系人Contacts的Uri为例,其结构如下所示: Uri结构图.png schema: Android中固定为content://。 authority: 用于唯 阅读全文
摘要:
快捷键: 1.Ctrl + Alt + T 快速包裹代码块。选中一段代码,然后按Ctrl + Alt + T,可以选择要对选中代码块进行的操作,如:if / else、do / while、try / catch / finally等。 2Ctrl+Y 删除一行 阅读全文
摘要:
mGridLayout = (GridLayout) findViewById(R.id.gridLayout); columnCount = mGridLayout.getColumnCount(); screenWidth = this.getWindowManager().getDefault 阅读全文
摘要:
Eclipse设置format时每行列数: Windows->Preference->Java->Code Style->Formatter->Edit->Line Wrapping->Maximum Line Width-> (sometiems may need to change )profi 阅读全文
摘要:
pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>or 阅读全文