项目启动提示语法错误[42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u ...
分类:
数据库 时间:
2020-12-29 12:06:59
阅读次数:
0
两个bean通过构造函数互为依赖项,spring容器就无法实例化这两个bean,会出现BeanCurrentlyInCreationException异常。 如何解决循环依赖: 1:加@Lazy注解 2: 使用setter注入(或字段上加@Autowired) 3:实现ApplicationCont ...
分类:
编程语言 时间:
2020-12-29 11:32:47
阅读次数:
0
type annotation 类型注解 let count: number; count = 1; type inference 类型推断 const one = 1; const two = 2; const three = one + two; const person = { name: " ...
分类:
其他好文 时间:
2020-12-29 11:26:26
阅读次数:
0
三种获取Class对象的方式 Person.java package com.domain; public class Person { } reflecDemo.java package com.reflec; import com.domain.Person; public class refl ...
分类:
编程语言 时间:
2020-12-29 11:07:52
阅读次数:
0
MyBatis简介MyBatis是一个基于Java的持久层框架,它内部封装了JDBC,使开发者只需关注SQL语句本身,而不用再花费精力去处理诸如注册驱动、创建Connection、配置Statement等繁杂过程。Mybatis通过xml或注解的方式将要执行的各种Statement、PreparedStatement等配置起来,并通过Java对象和Statement中SQL的动态参数进行映射生成最
分类:
编程语言 时间:
2020-12-29 11:05:15
阅读次数:
0
体系结构概述: @Bean 之前时候,在xml配置文件使用: <bean id="person" class="com.atguigu.bean.Person" scope="prototype" > <property name="age" value="${}"></property> <pro ...
分类:
编程语言 时间:
2020-12-28 12:01:10
阅读次数:
0
首先Spring Boot项目中都会如下启动类: @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application. ...
分类:
编程语言 时间:
2020-12-28 11:58:46
阅读次数:
0
史上最快、最强大的Gradle5.0发布,新特性全解图片来源|Gradle博客译者|无明Gradle5.0是有史以来速度最快、最安全、最强大的Gradle版本,这是Gradle官方给出的评价,v5.0新增的功能主要包括:在构建缓存和更新检查功能的基础之上,Gradle5.0又改进了增量编译和增量注解处理功能。依赖约束、依赖对齐和版本锁定提供了可伸缩且灵活的依赖管理模型。新的性能提升、依赖关系管理、
分类:
其他好文 时间:
2020-12-25 12:50:29
阅读次数:
0
@FunctionalInterface注解 与@Override注解作用类似,Java 8中专门为函数式接口引入的一个新注解@FunctionalInterface,该注解主要定义在接口上。一旦在接口上使用该注解,编译期将会强制检查该接口是不是一个函数式接口,该接口中是不是有且仅有一个抽象方法,如 ...
分类:
其他好文 时间:
2020-12-24 12:04:58
阅读次数:
0
springboot常用注解 来源:https://blog.lqdev.cn/2018/07/16/springboot/chapter-six/ @SpringBootApplication 在系统启动类里面,包含了@SpringBootConfiguration、@EnableAutoConf ...
分类:
编程语言 时间:
2020-12-24 11:34:47
阅读次数:
0