摘要: 将springboot项目打包的几种方式 使用maven命令打包 使用export打包成runnable jar file 使用export打包成war file 详见: https://blog.csdn.net/yingxiake/article/details/51246605 阅读全文
posted @ 2020-03-22 21:51 我的二天 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 详细解决方案: https://blog.csdn.net/weixin_38156606/article/details/80685558?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_re 阅读全文
posted @ 2020-03-22 21:37 我的二天 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 使用JDBC连接Mysql 8.0.11出现了各种错误的解决 解决方案:详见 https://www.jb51.net/article/167824.htm 阅读全文
posted @ 2020-03-21 19:19 我的二天 阅读(352) 评论(0) 推荐(0) 编辑
摘要: You must configure either the server or JDBC driver (via the serverTimezone configuration property) 问题分析:未统一服务器时间 utc 解决方案:详见 https://blog.csdn.net/aa 阅读全文
posted @ 2020-03-21 19:11 我的二天 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 通过注解配置bean,相对于XML方式而言,通过注解的方式配置bean更加简洁和优雅,而且和MVC组件化开发的理念十分契合,是开发中常用的使用方式。 第一步:在xml文件中声明注解使用的包的范围: <context:component-scan base-package="com.xcc.compo 阅读全文
posted @ 2020-03-08 18:05 我的二天 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 第一种:构造器参数注入 第二种:setter方法属性注入(setter方法的规范需要符合JavaBean规范) 第三种:接口注入 注意:Spring 框架规范中通过配置文件配置的方式.只支持构造器参数注入和setter方法属性注入,不支持接口注入 ! 测试构造器参数注入: 新建一个类,生成构造器 / 阅读全文
posted @ 2020-03-06 15:29 我的二天 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Singleton: 在一个spring容器中,对象只有一个实例。(默认值) Prototype: 在一个spring容器中,存在多个实例,每次getBean 返回一个新的实例。 //创建类SingletonBean .java类 public class SingletonBean { publi 阅读全文
posted @ 2020-03-06 12:43 我的二天 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 导入spring核心架包: 标号一:日志需要的架包 标号而:spring的核心架包 spring核心IOC的实现和理解: 关键就是配置applictionContext.xml文件 在applicationContext.xml文件中引入bean schema约束 <?xml version="1. 阅读全文
posted @ 2020-03-06 12:00 我的二天 阅读(143) 评论(0) 推荐(0) 编辑
摘要: package threadtest; import java.util.Comparator; import org.junit.Test; public class Lambda { @Test public void test() { Runnable r1=new Runnable() { 阅读全文
posted @ 2020-03-03 17:38 我的二天 阅读(144) 评论(0) 推荐(0) 编辑
摘要: package reflaction1; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import org.junit.Test; pub 阅读全文
posted @ 2020-03-03 16:35 我的二天 阅读(100) 评论(0) 推荐(0) 编辑