java报错大合集

 

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) 

作者:freps

出处:https://www.cnblogs.com/freps/p/18474008

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可。

posted @   LL。。。  阅读(23)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示