java報錯大合集

LL。。。發表於2024-10-18

D:\程式碼\Mybatis-84\src\test\java\com\lu\TestNews.java:100:39
java: 找不到符號
  符號:   方法 of(int,int)
  位置: 介面 java.util.List
java報錯大合集

解決idea中的jdk變成1..8了而List.of()是9出的所有報錯,改回17

在“class java.lang.String”中沒有名為“name”的屬性的 getter
java報錯大合集

純屬粗心大意 前端傳過來一個name我給他繫結了一個@Param("s")使用應該是直接用#{s}就行,但是我用了#{s.name}很傻逼

2024/08/27 16:23:20 [emerg] 648#8732: createdirectory() "c:\users\l\desktop\nginx-1.20.2-cq/temp/client_body_temp" failed (3: the system cannot find the path specified)
java報錯大合集

這個是nginx報錯原因是我把檔案放c盤了nginx沒許可權,手動建立檔案解決

2024/08/27 16:17:44 [emerg] 3668#2192: createfile() "c:\users\l\desktop\ \ չ ҵ\day01-  ա ģ \ \ ŀ ʼ \ǰ ˻ \nginx-1.20.2-cq/conf/nginx.conf" failed (1113: no mapping for the unicode character exists in the target multi-byte code page)
java報錯大合集

這個也是nginx報錯原因是放nginx的目錄下有中文

[ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 44, column 21
[ERROR] 'dependencies.dependency.version' for cn.afterturn:easypoi-spring-boot-starter:jar is missing. @ line 100, column 21
java報錯大合集

maven在clean的時候一直報錯,解決方法把mysql依賴改了,我也是瘋了以為這是爆的假錯

 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'employeeMapper' defined in file [D:\程式碼\sky-take-out\sky-server\target\classes\com\sky\mapper\admin\EmployeeMapper.class]: Invalid value type for attribute 'factoryBeanObjectType': java.lang.String
java報錯大合集

引入的mybatis版本沒和springboot高版本對應

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
	If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active).
java報錯大合集

改springboot版本之後這個 要加一個

type: com.alibaba.druid.pool.DruidDataSource(2.7.2)(3.3.2)之後

Non-parseable POM D:\MyJar\com\fasterxml\jackson\jackson-bom\2.11.4\jackson-bom-2.11.4.pom: unexpected markup <!d (position: START_DOCUMENT seen \n<!d... @2:4)

相關文章