报错
一 只
不会编程的小孩子,找大佬带带
展开
-
关于拆分boot工程的踩坑之maven多模块间的依赖关系处理
先介绍几个maven标签modules:用于添加子模块properties:自定义版本信息dependencyManagement:依赖管理,只是做声明,不会真的引入依赖三种版本管理方式在properties中定义版本号,子模块使用${}引入即可在dependencyManagement中声明依赖信息,子模块直接引入,不需要写版本号在properties定义版本,在dependencyManagement中声明,最后在子模块引入笔者的一些最佳实践。原创 2023-08-13 19:11:17 · 65 阅读 · 0 评论 -
mybatis参数报错Parameter ‘docId‘ not found. Available parameters are [arg1, arg0, param1, param2]
mapper层有多个参数的时候应该使用parm注解,注意导包导入mybatis的包,笔者就是此处导报错误。原创 2023-02-25 16:39:51 · 89 阅读 · 0 评论 -
@RequestParam()和@PathVariable()的区别
PathVariable主要用于接收http://host:port/path/{参数值}数据。@RequestParam主要用于接收http://host:port/path?参数名=参数值数据,这里后面也可以不跟参数值。用@RequestParam请求接口时,URL是:http://www.test.com/user/getUserById?用@PathVariable请求接口时,URL是:http://www.test.com/user/getUserById/2。原创 2023-02-20 16:34:02 · 78 阅读 · 0 评论 -
@RequiredArgsConstructor(onConstructor_ = @Autowired)报错
@RequiredArgsConstructor(onConstructor_ = @Autowired)报错解决原创 2023-01-13 16:02:24 · 336 阅读 · 0 评论