java报错大合集

freps / 2024-10-23 / 原文

 

D:\代码\Mybatis-84\src\test\java\com\lu\TestNews.java:100:39
java: 找不到符号
  符号:   方法 of(int,int)
  位置: 接口 java.util.List

解决idea中的jdk变成1..8了而List.of()是9出的所有报错,改回17

 

在“class java.lang.String”中没有名为“name”的属性的 getter

纯属粗心大意 前端传过来一个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)

 这个是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)

 这个也是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

 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

引入的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).

改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)