- 博客(295)
- 收藏
- 关注
转载 html 要使submit生效,就必须给form里的表单设定name,才能把值提交
转载于:https://www.cnblogs.com/kinome/p/11515437.html
2019-09-12 22:28:00
447
转载 当 springboot 部署war包,tomcat报一堆无法解决的问题时
直接打包jar即可,这样就可以解决这些问题了。转载于:https://www.cnblogs.com/kinome/p/11509258.html
2019-09-11 22:32:00
274
转载 thymeleaf在开发环境正常,但用jar运行时报错 Error resolving template template might not exist or might not be access...
通过打包 jar直接运行的百度搜索此关键词找到的:“springboot jar error resolving template”原因是指向模板的路径前有斜杆/,就会出错,去掉就正常了(路径前不能带斜杆,类似相对路径的写法)网上有人说增加配置spring.thymeleaf.prefix=classpath:/templates也能解决转载于:http...
2019-09-11 22:31:00
418
转载 springboot 项目部署后 404的问题
是因为打包的时候,没有把webapp打包进去pom.xml 在build里加入下面的依赖即可<!-- resources插件,在打jar包时可以将webapp目录下的文件进行打包 --> <resources> <resource> <!-- ...
2019-09-11 21:32:00
568
转载 springboot 2.2.0 SNAPSHOT 解决 repositories.repository.id must be unique 的问题
如果打包jar也报错了 ,那也是这个的原因,注释掉即可<!-- 这个仓库必须注释掉 否则打包 war 的时候 , 会报错 'repositories.repository.id' must be unique --><!-- <repository>--><!-- ...
2019-09-11 20:27:00
2870
转载 shiro 不使用加密 解决 org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token...
测试本方法为失效的报错:org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - null, rememberMe=false] did not match t...
2019-08-30 21:55:00
2520
转载 ShiroFilterFactoryBean 找不到的原因
是因为参考的那篇shiro的博客,没有引入这个依赖的原因<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.3.2</version&...
2019-08-30 18:37:00
1552
转载 mybatis plus table doesn't exists
使用@TableName注解即可实际上就是建立bean与表名的连接转载于:https://www.cnblogs.com/kinome/p/11435624.html
2019-08-30 16:23:00
2568
转载 mybatis plus 报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)少了个范型转载于:https://www.cnblogs.com/kinome/p/11435460.html
2019-08-30 16:05:00
343
转载 springboot 集成 druid mybatis-plus
通过这篇配置成功:https://www.cnblogs.com/shine-rainbow/p/9618100.html不过mybatis 3.4.6一直maven下载失败,于是直接在官方那里下的jar包放maven目录里去的,成功使用。转载于:https://www.cnblogs.com/kinome/p/11393270.html...
2019-08-22 11:22:00
58
转载 maven国内镜像、国内外仓库(直接下载jar)
阿里:https://maven.aliyun.com/mvn/search官方:http://repo.maven.apache.org/maven2/maven仓库阿里巴巴的镜像仓库, 可以下载大部分的镜像<repository> <id>alimaven</id> ...
2019-08-22 11:19:00
376
转载 idea maven sync Cannot resolve xxx 的解决方案
经常会出现这种奇葩情况,提示找不到包其实是因为网络波动或者突然断掉,导致包更新出现问题直接去maven的仓库目录找到不能找到的包删掉相关目录然后重新更新maven就行了比如直接去仓库目录下把这个因为网络原因更新失败同步出现问题的包目录删除就行了然后重新更新maven就可以了mybatis 3.4.6这...
2019-08-21 23:16:00
3067
转载 maven 配置国内镜像仓库加速获取jar包的配置方法
在maven的 conf/settings.xml中配置 <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirro...
2019-08-21 21:46:00
202
转载 java 开发工具包 jdk 64位 jdk-8u221-windows-x64.exe 迅雷下载
迅雷下载链接(迅雷新建任务,复制链接进去):https://download.oracle.com/otn/java/jdk/8u221-b11/230deb18db3e4014bb8e3e8324f81b43/jdk-8u221-windows-x64.exe?AuthParam=1563589007_663a1f07ff53f2baa3925f340f025ad7...
2019-08-20 12:10:00
1326
转载 idea 更新后和新的直接安装前,都需要配置 idea64.exe.vmoptions 后再使用
配置合适的参数提升性能,默认的性能不高转载于:https://www.cnblogs.com/kinome/p/11286380.html
2019-08-02 07:09:00
631
转载 如果更新了maven仓库,直接启动项目前必须要把lib put进项目
不然就会提示找不到class转载于:https://www.cnblogs.com/kinome/p/11286379.html
2019-08-02 07:07:00
112
转载 mysql 5.7 Could not load driverClass com.mysql.cj.jdbc.Driver
参考:http://www.manongjc.com/article/24424.htmlhttps://blog.csdn.net/kingscoming/article/details/78824449https://blog.csdn.net/yaphets__yj/article/details/77774874实际上,在升级了mysql的连...
2019-08-02 07:06:00
569
转载 maven 报错 Cannot resolve plugin org.apache.maven.plugins:maven-war-plugin:2.1.1
主要原因是本地maven的配置文件和仓库地址不一致。转载于:https://www.cnblogs.com/kinome/p/11286374.html
2019-08-02 07:00:00
1536
转载 mysql 5.7 安装配置及无法启动的问题解决
(用这篇配置就能正常配置成功)mysql免安装版配置方法:https://www.jb51.net/article/134452.htm参考:https://blog.csdn.net/qq_23994787/article/details/80648731mysql 安装问题一:由于找不到MSVCR120.dll,无法继续执行代...
2019-08-02 05:51:00
178
转载 Linux 修改时间和时区为上海时区
发现centos7的时间是utc的,和上海时间不一样。由于/usr/share/zoneinfo/Asia/ 这个目录下没有北京时区,就选择了上海时区,只要赋值过去就可以了rm -f /etc/localtimecp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime解决转载于:https:...
2019-04-13 15:00:00
350
转载 bootstrap 失效的原因
首先必须对着官方文档的模板来写:https://getbootstrap.com/docs/4.3/getting-started/introduction/然后:这里必须加上rel="stylesheet" ,否则失效<link rel="stylesheet" href="libs/bootstrap-4.3.1-dist/css/boo...
2019-03-29 00:29:00
2093
转载 idea 上传代码到 gitee
https://www.2cto.com/net/201804/740238.html这一步如果是个空仓库可以提交,如果是个已有的项目 Defineremote一下就可以了,不要提交代码转载于:https://www.cnblogs.com/kinome/p/10618202.html...
2019-03-28 22:29:00
295
转载 git pull 解决 refusing to merge unrelated histories 错误
解决办法:1.cmd进入项目的根目录。2.执行下面的命令:git pull origin master--allow-unrelated-histories。可以提交成功。3.再次push。转载于:https://www.cnblogs.com/kinome/p/10618155.html...
2019-03-28 22:22:00
100
转载 springboot 集成 jpa/hibernate
pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> ...
2019-03-21 15:36:00
154
转载 hibernate(*.hbm.xml)中新添加的字段被标记为红色(找不到)的解决方法
首先得是以这个方式生成的bean和xml,配置好了数据源(这样才能让hibernate中的配置和mysql进行交互)https://www.cnblogs.com/kinome/p/10549969.html在手动添加了新的字段和bean中的属性时,需要在红色的字段上alt+enter一下,然后选择refresh就可以刷新同步了,然后就显示正常了(找到了)。...
2019-03-21 13:50:00
299
转载 hibernate 解决诡异的mysql存入中文乱码
使用hibernate查询mysql,通过bean的get方法拿到字符串再写入mysql中的字段会中文乱码,需要String string = xxx.get(),把get方法拿到的值传入到新的string中,在存入数据库就不会中文乱码了。转载于:https://www.cnblogs.com/kinome/p/10571142.html...
2019-03-21 13:42:00
76
转载 2018年12月份GitHub上最热门的Java开源项目
来自:开源最前线(ID:OpenSourceTop)链接:https://www.itcodemonkey.com/article/12747.html又到了公布 GitHub 上热门项目的时候啦~在 12 月的排行中,现在,一起来看看这些项目你使用过哪些呢?1,JavaGuidehttps://github.com/Snailclimb/JavaGu...
2019-03-19 14:12:00
87
转载 hibernate 解决 org.hibernate.StaleStateException: Batch update returned unexpected row count from upda...
这是因为没有设置要更新的主键导致的,只要设置了要更新的主键就能更新成功(没有主键当然不能更新)转载于:https://www.cnblogs.com/kinome/p/10552984.html...
2019-03-18 16:37:00
277
转载 javaweb 项目启动问题:Application Server was not connected before run configuration stop, reason: javax.man...
参考:https://blog.csdn.net/whm18322394724/article/details/80290187换成本机的jre就行了(路径要正确,特别是项目迁移的时候有时候用环境变量就不行了,用绝对路径就不会出这种错误(路径一定要正确))转载于:https://www.cnblogs.com/kinome/p/10551269.html...
2019-03-18 11:42:00
476
转载 IntelliJ IDEA下自动生成Hibernate映射文件以及实体类
来自:https://blog.csdn.net/chenyunqiang/article/details/810268231、构建项目并添加项目结构配置以及配置初始参数1.1、如图将基本的架子搭建好1.2、点击File,弹出的菜单中点击Project Structure;1.3、点击左侧的Modules,再点击“+”号,再在...
2019-03-18 01:50:00
167
转载 hibernate 解决 java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
参考:https://stackoverflow.com/questions/9851528/java-lang-noclassdeffounderror-org-hibernate-cfg-configuration/9853106You're getting the error because the hibernate libraries are not ava...
2019-03-16 22:20:00
275
转载 maven项目中 org.hibernate.MappingNotFoundException: resource:*.hbm.xml not found问题的解决方案...
是因为*.hbm.xml没有放到resource的mapper下导致的对于Maven工程,编译的工作是由Maven程序来完成的,而Maven默认只会把src/main/resources文件夹下的文件拷贝到target/classes文件夹下,所以bean中的*.hbm.xml都不会被复制到/target/calsses文件夹下,所以Hibernate框架在运行的时候,就...
2019-03-16 16:57:00
280
转载 maven 通过 pom.xml 指定java编译版本
<!-- 给maven项目指定编译版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin...
2019-03-16 14:35:00
302
转载 hibernate 解决 java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.inte...
<!-- 解决 java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.xxx 这类的问题,这里的xxx是指的一些类 --><!-- 可能是版本冲突导致的这个问题,因为我的 hibernate-validato...
2019-03-16 14:29:00
2196
转载 hibernate 4 需要导入的jar包
<!-- 下面是导入 hibernate 必须的 jar 包 --><!-- https://mvnrepository.com/artifact/antlr/antlr --><dependency> <groupId>antlr</groupId> <artifactId&g...
2019-03-16 13:17:00
372
转载 使用 cron 定时任务实现 war 自动化发布
autoRelease.sh#!/bin/sh/home/tomcat/bin/shutdown.shecho "tomcat stoped"cd /home/tomcat/webappsrm -rf DETECT-X/ DETECT-X.warwget http://192.168.1.42/DETECT-X.war/home/tomcat/...
2019-03-11 18:06:00
103
转载 解决 java.net.BindException: Address already in use (Bind failed)
这是因为tomcat未正确关闭导致的端口占用问题找到报错中被占用的端口kill掉进程即可,一般是8080,也有下面这种8005的11-Mar-2019 14:46:12.405 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[local...
2019-03-11 18:01:00
13114
转载 springmvc 解决 controller 中出现死循环并 stackoverflow 的问题
这是因为这个controller中的方法返回值为void类型,且没有requestresponse这类衍生的重定向,或者返回值为String,但是是null等等的情况,都会引起死循环,然后stackoverflow,只需要能返回给客户端(比如浏览器)响应,就不会死循环,比如@RestController ,或者@ResponseBody ,以及其他一些重定向之类的,...
2019-03-09 23:23:00
487
转载 centos7 清除系统日志、历史记录(包括history)、登录信息
history:# echo > .bash_history //清除保存的用户操作历史记录# history -cw //清除所有历史centos7 清除系统日志、历史记录、登录信息:https://blog.51cto.com/study2008/2301555转载于:https://www.cnblogs.com/ki...
2019-03-09 13:15:00
747
转载 cmd 设置静态 ip 地址
https://www.cnblogs.com/bingxing/p/6346849.html转载于:https://www.cnblogs.com/kinome/p/10500376.html
2019-03-09 13:13:00
312
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人