- 博客(35)
- 资源 (5)
- 收藏
- 关注
转载 分组后选出每组中时间最近的记录
https://blog.youkuaiyun.com/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
340
原创 报错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
535
原创 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
347
原创 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
889
原创 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
1148
原创 mybatis的mapper配置文件加载不到
此时,mapper配置文件和接口文件在同一层Pom.xml文件中加入以下代码<build> <resources> <resource> <directory>src/main/java</directory> <include...
2019-06-19 15:16:05
1489
原创 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
1218
原创 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
460
转载 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
160
转载 springboot idea
https://www.cnblogs.com/zmfx/p/8903688.html一、SpringBoot简介 开发团队:Pivotal团队 主要目的:简化新Spring应用的初始搭建以及开发过程。 秉持理念:约定优于配置。(该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置)二、SpringBoot的特点 1、快速创建独...
2019-06-12 11:40:12
302
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
9210
转载 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.youkuaiyun.com/sddxqlrjxr...
2019-05-31 14:12:31
7383
8
转载 对实体 “characterEncoding” 的引用必须以 ‘;’ 分隔符结尾
https://blog.youkuaiyun.com/qq542045215/article/details/45313507启动Mybatis报:对实体 “characterEncoding” 的引用必须以 ‘;’ 分隔符结尾“&”定义与解析的原因<property name="url" value="jdbc:mysql://192.168.10.150:330...
2019-05-31 11:48:34
214
原创 mybatis新增一条记录,返回id主键
<insert id="addList" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
2019-05-17 14:19:38
342
原创 $.post的function不能return false,在外部返回
if(appID!=null && appID!=""){ $.post( "/caseInfo/checkAppId", { "appID":appID...
2019-04-24 15:16:59
355
原创 $.post的function中,data参数需要eval
$.post( "/caseInfo/checkAppId", { "appID":appID }, fun...
2019-04-24 15:11:38
352
原创 $.post可以写在function(){}中
$.post( "/caseInfo/checkEnName", { "enName":enName }, function(data){...
2019-04-24 15:05:13
1386
原创 td内容显示部分,鼠标悬停的时候显示全部
$(".enName").each(function(){ if(cnName.length>50){ $(this).on("mouseenter",function(){ $(this).attr("title",cnName); }) }) })...
2019-04-23 16:57:00
1716
转载 input标签对齐方式https://www.jianshu.com/p/fa4ed77e6fec
直入主题吧,直接写input标签去做对齐,是很难对齐,所以之前一直都是用table表格去对齐,这个大家应该都知道(我还是放一个简单的demo吧)。现在发现一个更好的对齐方式。是通过label标签去对齐。第一种 直接用input写这种不太好对齐 可能用 去对齐,但是太麻烦。第二种 用table去布局这种比较好对齐,可以采用<table > ...
2019-04-23 14:29:34
2020
原创 模糊搜索
if(caseUpRecordDomain.getCaseName()!=null && caseUpRecordDomain.getCaseName()!=""){ String caseName = caseUpRecordDomain.getCaseName().replace("", "%"); caseName = "%...
2019-04-22 09:13:58
148
原创 thymeleaf的textarea数据回显用th:text,th:value不能回显
thymeleaf的textarea数据回显用th:text,th:value不能回显
2019-04-19 10:11:46
11156
5
原创 script放在html的最下端
如果放在上端,则加上$(document).ready(function(){$(document).ready(function(){ $("p").click(function(){ alert("段落被点击了。"); });});
2019-04-18 15:57:44
427
原创 easyUI对日期格式化,需要重写formatter和parser
如果对日期进行自己的格式化,则需要同时重写parser方法$("#publishDateID").datetimebox({ formatter:function(date){ var y = date.getFullYear(); var m = date.getMonth()+1; ...
2019-04-18 15:54:59
1444
原创 thymeleaf数字在页面循环递增
<span th:each="i:${#numbers.sequence(1,pageCount)}"> <a href="#" th:text="${i}"></a></span>
2019-04-17 10:07:43
1722
转载 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
879
转载 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
111
原创 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
141
原创 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
165
原创 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
3578
1
转载 springboot保存数据库乱码
转自https://blog.youkuaiyun.com/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
2656
原创 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
688
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人