Loading...
欢迎来到坏孩子博客。祝您学习愉快。
mybatis和spring整合1.maven导入需要的包<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3....
Java多线程(线程不安全)1.多线程的作用多线程主要是用来提高程序运行的效率的,让一些线程同时执行,也就是让一些代码同时执行,来提高程序的效率。2.多线程的三种用法继承Thread类继承Runnable接口Callable接口(了解即可,这里不再说明)3.继承Thread类首先需要继承Thread类,然后重写run方法,最后通过调用start方法来启动线程。还是直接上代码。package ...
# Mybatis多对一``` package cn.ymj.dao;import cn.ymj.pojo.Student;import java.util.List;public interface StudentMapper { List getAllStudent();List getAllStudent2();}`````` package cn.ymj.pojo;public cl...
# 1.报错原因**Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure...
# 1.示例 运行结果![image.png](https://www.yangmujun.cn/us...