含标签“java”的文章
vs code debug 报错 Java runtime (JDK, not JRE) could not be located
>vs code debug 报错 Java runtime (JDK, not JRE) could not be located 这个是因为JAVA_HOME,CLASSPATH没...
Table 'DBNAME.hibernate_sequence' doesn't exist
> jpa报错,Table 'DBNAME.hibernate_sequence' doesn't exist,这个解决办法是加上自增 尝试如下: ```java @Id @Ge...
java 常见面试题总结
1.mysql 的隔离级别和锁 + mysql 的锁分为共享锁(又叫S锁)和拍他锁(又叫X锁),S锁----允许多个事务并发的读取同一个资源,互补干扰。X锁----事务T加上排他锁后,其他...
androidx报错:No field mListener in class Landroid/view/animation/Animation
>这个是因为没有设置动画,但是设置了transaction导致,按下面改动代码 改动前: ```java supportFragmentManager .be...
idea 中maven project 报错:reattempted until the update interval of central has elapsed or updates are forced
>maven pom 报错:Failure to find com.tencent.tsf:spring-cloud-tsf-dependencies:pom:1.12.1-Edgware-RE...
spring boot 2跨域问题
>spring boot 2 的跨域和1不太一样,具体配置如下 ```java @Configuration public class CorsConfig implements We...
gradle 编译报错:java.lang.OutOfMemoryError: GC overhead limit exceeded
>OOm错误 1.配置gradle.properties ```bash org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -X...
javax.imageio.ImageIO.write空指针java.lang.NullPointerException
> javax.imageio.ImageIO.write报空指针异常,发现是没有路径directory导致 1.加入路径存在判断即可 ```java File di...
spring boot h2备份和还原--java代码
>h2内置的tool可以备份还原h2数据库。 1.首先引入了h2的依赖,注意scope是compile,spring boot 默认是runtime,没法使用 ```xml ...
kvm is required to run this AVD /dev/kvm is not found 运行android应用
>这个是linux机器,建议使用kvm来虚拟运行安卓app. 我的是archlinux 首先最首要的一点,bios中开启intel Virtualization Technology -...