自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 资源 (5)
  • 收藏
  • 关注

转载 分组后选出每组中时间最近的记录

https://blog.csdn.net/u012660464/article/details/78605078select * from (select * from table ORDER BY time desc LIMIT 1000000000000) b GROUP BY column1,column2 ;...

2019-07-02 16:53:59 299

原创 报错java.net.BindException Address already in use JVM_Bind

1,查看端口被哪个进程占用netstat –p tcp –ano | findstr:9999找到pid,例如TCP 0.0.0.0:9999 0.0.0.0:0 LISTENING 1347522,查看134752进程的进程名tasklist | findstr 134752java.e...

2019-06-19 15:27:11 502

原创 Could not resolve archetype org.apache.maven.archetypesmaven-archetype-weba

可能解决方案之一setting.xml文件加入以下内容<mirror><id></id><mirrorOf></mirrorOf><url></url></mirror>...

2019-06-19 15:26:29 292

原创 idea整合springboot和mybatis报错——org.apache.ibatis.binding.BindingExceptionInvalid bound statement

解决方案:Mapper配置文件*.xml放在resources下,新建mapper目录application.properties文件中mybaits.mapperLocations=classpath*:mapper/*.xml如果xml文件没被编译,target目录下没有xml文件,IDEA右侧mavenLifecycle clean compile insta...

2019-06-19 15:24:29 848

原创 idea整合springboot搭建环境

1,file——new——project2,Spring Initializr,Project SDK选择1.83,Group:com.exampleArtifact:demoPackaging:jarJava Version:8Name:demoPackage:com.example.demo4,选择Web,Spring Web Starter勾选5,Proj...

2019-06-19 15:22:22 1109

原创 mybatis的mapper配置文件加载不到

此时,mapper配置文件和接口文件在同一层Pom.xml文件中加入以下代码<build> <resources> <resource> <directory>src/main/java</directory> <include...

2019-06-19 15:16:05 1401

原创 mybatis加载不到全局配置文件conf.xml

Mybatis加载不到全局的配置文件conf.xmlString resource = "json/conf.xml";InputStream is = SocketServer.class.getClassLoader().getResourceAsStream(resource);SqlSessionFactory sessionFactory = new SqlSessionFact...

2019-06-19 15:11:36 1173

原创 idea整合maven创建普通javaSE项目

1,file——new——project2,点击maven,project sdk选择1.8,勾选create from archetype,选中org.apache.maven.archetypes:maven-archetype-quickstart3,GroupId:com.test ArtifactId:demo4,Maven home directory:选择maven安装目...

2019-06-19 15:09:47 416

转载 idea打包jar

转自:https://www.cnblogs.com/blog5277/p/5920560.html新版本没有build on make,不勾选也可以1,在项目上鼠标右键 --> Open Module Settings2, Artifacts --> + --> JAR --> From modules with dependencies......

2019-06-19 14:54:04 100

转载 springboot idea

https://www.cnblogs.com/zmfx/p/8903688.html一、SpringBoot简介  开发团队:Pivotal团队  主要目的:简化新Spring应用的初始搭建以及开发过程。  秉持理念:约定优于配置。(该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置)二、SpringBoot的特点  1、快速创建独...

2019-06-12 11:40:12 243 1

转载 Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.10.RELEASE:repackage (d

https://www.cnblogs.com/thinking-better/p/7827368.htmlSpring Boot Maven Plugin打包异常及三种解决方法:Unable to find main class【背景】spring-boot项目,打包成可执行jar,项目内有两个带有main方法的类并且都使用了@SpringBootApplication...

2019-06-12 09:36:19 8802

转载 The connection property 'useUnicode' only accepts values of the form: 'true', 'false', 'yes' or 'no

The connection property 'useUnicode' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true;characterEncoding=utf-8' is not in this set.https://blog.csdn.net/sddxqlrjxr...

2019-05-31 14:12:31 7069 8

转载 对实体 “characterEncoding” 的引用必须以 ‘;’ 分隔符结尾

https://blog.csdn.net/qq542045215/article/details/45313507启动Mybatis报:对实体 “characterEncoding” 的引用必须以 ‘;’ 分隔符结尾“&”定义与解析的原因<property name="url" value="jdbc:mysql://192.168.10.150:330...

2019-05-31 11:48:34 169

原创 Enterprise Architect—— UML软件开发与建模工具

Enterprise Architect—— UML软件开发与建模工具

2019-05-17 16:01:13 472

原创 mybatis新增一条记录,返回id主键

<insert id="addList" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">

2019-05-17 14:19:38 308

转载 https://www.cnblogs.com/gynbk/p/7954100.html

fasd

2019-04-26 14:41:56 2756

原创 $.post的function不能return false,在外部返回

if(appID!=null && appID!=""){ $.post( "/caseInfo/checkAppId", { "appID":appID...

2019-04-24 15:16:59 326

原创 $.post的function中,data参数需要eval

$.post( "/caseInfo/checkAppId", { "appID":appID }, fun...

2019-04-24 15:11:38 310

原创 $.post可以写在function(){}中

$.post( "/caseInfo/checkEnName", { "enName":enName }, function(data){...

2019-04-24 15:05:13 1298

原创 $.post设置为同步请求

$.ajaxSettings.async = false;

2019-04-24 14:56:39 1347

原创 td内容显示部分,鼠标悬停的时候显示全部

$(".enName").each(function(){ if(cnName.length>50){ $(this).on("mouseenter",function(){ $(this).attr("title",cnName); }) }) })...

2019-04-23 16:57:00 1633

转载 input标签对齐方式https://www.jianshu.com/p/fa4ed77e6fec

直入主题吧,直接写input标签去做对齐,是很难对齐,所以之前一直都是用table表格去对齐,这个大家应该都知道(我还是放一个简单的demo吧)。现在发现一个更好的对齐方式。是通过label标签去对齐。第一种 直接用input写这种不太好对齐 可能用&nbsp去对齐,但是太麻烦。第二种 用table去布局这种比较好对齐,可以采用<table > ...

2019-04-23 14:29:34 1464

原创 模糊搜索

if(caseUpRecordDomain.getCaseName()!=null && caseUpRecordDomain.getCaseName()!=""){ String caseName = caseUpRecordDomain.getCaseName().replace("", "%"); caseName = "%...

2019-04-22 09:13:58 131

原创 thymeleaf的textarea数据回显用th:text,th:value不能回显

thymeleaf的textarea数据回显用th:text,th:value不能回显

2019-04-19 10:11:46 10996 5

原创 script放在html的最下端

如果放在上端,则加上$(document).ready(function(){$(document).ready(function(){ $("p").click(function(){ alert("段落被点击了。"); });});

2019-04-18 15:57:44 386

原创 easyUI对日期格式化,需要重写formatter和parser

如果对日期进行自己的格式化,则需要同时重写parser方法$("#publishDateID").datetimebox({ formatter:function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; ...

2019-04-18 15:54:59 1374

原创 thymeleaf数字在页面循环递增

<span th:each="i:${#numbers.sequence(1,pageCount)}"> <a href="#" th:text="${i}"></a></span>

2019-04-17 10:07:43 1651

转载 springboot+mybatis控制台打印sql

https://www.jianshu.com/p/bf165255af61Spring boot + Mybatis 显示sql语句的配置Mason啊关注2017.10.11 12:00*字数 137阅读 555评论 0喜欢 0我们在使用Spring boot 和Mybatis 进行整合时候,我们需要查看sql语句,我在网上找了一些资料,发现很多人都配置的比较繁琐,...

2019-04-16 16:22:40 846

转载 java中获取类加载路径和项目根路径的5种方法

https://www.cnblogs.com/franson-2016/p/6163422.htmlimport java.io.File;import java.io.IOException;import java.net.URL;public class MyUrlDemo { public static void main(Str...

2019-04-16 15:41:18 92

原创 java读json文件

@RequestMapping("/jsontest") public String jsontest() { String path = getClass().getClassLoader().getResource("index.json").toString(); path = path.replace("\\", "/"); int ...

2019-04-16 09:35:53 107

原创 java操作excel用POI

public class TestExcel { // read @Test public void test() { try { String path = this.getClass().getClassLoader().getResource("poi/test.xlsx").toString(); ...

2019-04-16 09:33:39 132

原创 springboot${}解析失败

mybatis的mapper文件,resultType映射到错的domain,造成${}解析失败

2019-04-16 09:27:53 747

原创 springboot下拉框select

<select name="detail" id="detail"> <option>请选择</option> <option th:each="list:${session.list}" th:value="${list.value}" ...

2019-04-16 09:26:03 3513 1

转载 springboot保存数据库乱码

转自https://blog.csdn.net/lik_lik/article/details/80207884引言: 今天的问题将围绕Java写入Mysql之时,中文在数据库中编程乱码的分析追踪过程,以此来了解和优化分析解决问题的过程。1. 开发环境描述Spring Boot 1.4.0.RELEASE, JDK 1.8, Mysql 5.7, Ce...

2019-04-16 09:21:17 2512

原创 spring+springboot+springmvc+mybatis+maven开发环境

jdk-7u79-windows-x64myeclipse8.5maven3.2.5spirngboot 1.5.10.RELEASEthymeleaf3.0.2.RELEASEthymeleaf-layout-dialect2.0.4mybatis-spring-boot-starter1.1.11,<properties>注释掉的内容,打开,...

2019-04-16 09:09:52 652

刘鹏的云计算课件

刘鹏的《云计算》课件,据说很好,拿来分享!

2013-10-04

hadoop_1.0.3_API.CHM

hadoop_1.0.3_API.CHM 手册很实用 免费共享

2013-09-21

TCP-IP详解

计算机网络TCP-IP详解 免费的哦 各个章节都独立划分了

2013-08-23

java就业培训教程

java就业培训教程,简单,易懂,强烈推荐

2013-06-18

数据结构与算法教程

数据结构与算法教程,章炯民等著pdf版,华东师范大学出版

2013-03-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除