- 博客(9)
- 收藏
- 关注
转载 mysql执行带外键的sql文件时出现mysql ERROR 1215 (HY000): Cannot add foreign key constraint的解决
mysql执行带外键的sql文件时出现mysql ERROR 1215 (HY000): Cannot add foreign key constraint的解决ERROR 1215 (HY000): Cannot add foreign key constraint最近在建表时遇到了这个错误,然后找了下找到了解决办法,记录下:本来是要建两张表:123456789101...
2020-04-19 23:20:21
195
转载 使用cmd指令强制关闭tomcat进程
使用cmd指令强制关闭tomcat进程在启动tomcat时候,有时候会报错,VM拒绝连接端口XXXX,其实是因该端口被占用,需要将其关闭。传统使用在tomcat 目录下shutdown关闭,但会出现无法真正关闭。使用cmd指令强制性杀死1.首先查找到占用8080端口的进程号PID是多少CMD>netstat -ano | findstr 80802.kill掉这个进程CMD&...
2020-04-10 23:51:43
740
转载 intellij idea 实体类报错“Cannot resolve table”/“Cannot resolve column”
ntellij idea 具体报错信息如下:解决方法:1.view->Tool Windows->Persistence右击项目:选择Assign Data Source选择相应的数据库即可。2.数据库选择:
2020-03-31 17:21:55
923
转载 @Controller,@Service,@Repository,@Component详解。
@Controller,@Service,@Repository,@Component详解。原创 javastack Java技术栈 2017-08-03@Controller用来表示一个web控制层bean,如SpringMvc中的控制器。@Service用来表示一个业务层bean。@Repository用来表示一个持久层bean,即数据访问层DAO组件。@Component用...
2020-03-29 22:18:16
200
转载 解决IDEA连接mysql报错:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' prope
原因:MySQL驱动jar中的默认时区是UTC。UTC代表的是全球标准时间 ,但是我们使用的时间是北京时区也就是东八区,领先UTC八个小时。因为时区不一致,所以提示Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually服务器返回了无效的时区,去“高级”标...
2020-03-26 19:16:42
178
原创 Spring注解开发
Spring注解1.使用注解须知:1.导入约束:xmlns:context=“http://www.springframework.org/schema/context”2.×××配置注解支持:context:annotation-config/最终:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http:...
2020-03-21 16:21:46
83
1
原创 关于spring的自动装配超详细
spring:Bean的显示装配Cat Class:package com.zz.pojo;public class Cat { public void shout() { System.out.println("miao~"); }}Dog Class:package com.zz.pojo;public class Dog { pu...
2020-03-21 00:44:24
81
转载 为什么mysql 连接url中需要有useUnicode=true&characterEncoding=UTF-8?
为什么mysql 连接url中需要有useUnicode=true&characterEncoding=UTF-8?我们在连接MySQL数据库的时候一般都会在url后面添加useUnicode=true&characterEncoding=UTF-8 ...
2020-03-15 22:48:37
310
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人