logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解决Parameter ‘xxxList‘ not found. Available parameters are [arg0,Collection,list]

当有多个参数时不能直接传入List,要用注解将参数传进去原代码List<Tag> findTagsByTagIds(List<Long> tagIds);修改后代码List<Tag> findTagsByTagIds(@Param("tagIds") List<Long> tagIds);问题解决!...

#java
springboot项目配置数据库连接池Druid

application文件spring:application:name:datasource:driver-class-name: com.mysql.cj.jdbc.Drivertype: com.alibaba.druid.pool.DruidDataSourceurl: jdbc:mysql://localhost:3306/xxx?useSSL=false&useUnicode=

#spring boot#数据库#java
java不同module之间调用方法

情况如下:第一个模块是 common模块第二个模块是 service模块在service中想要调用common模块中的方法:需要将common模块导入service的pom.xml文件当中<dependency><groupId>com.xxx</groupId><artifactId>common</artifactId><ver

#java#spring
redis:6.0.8配置文件 redis.conf (已配置好)

# Redis configuration file example.## Note that in order to read the configuration file, Redis must be# started with the file path as first argument:## ./redis-server /path/to/redis.conf# Note on unit

文章图片
#redis#spring boot#缓存
springboot统一异常处理

1、统一返回结果@Datapublic class Result {@ApiModelProperty("返回码")private Integer code;@ApiModelProperty("返回信息")private String msg;@ApiModelProperty("返回数据")private Object data;public static Result success() {

#spring boot#后端#java
docker更换镜像源

docker更换镜像源之后一定要重启守卫。

文章图片
#docker#容器#运维
springboot简单使用swagger3.0,使用swagger3.0报错404,出现basis error

1、导入依赖<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>2.9.2</version></dependency><!-- https

#java#html#spring boot +2
Spring Boot ClassNotFoundException org.springframework.core.metrics.ApplicationStartup

【报错】Spring Boot ClassNotFoundException org.springframework.core.metrics.ApplicationStartup原因是依赖导包版本的问题发现pom.xml有一个dependence自带了版本<dependency><groupId>org.springframework</groupId>&lt

java: 程序包org.springframework.boot不存在 java: 程序包org.springframework.boot.autoconfigure不存在 java: 找不到符号

java: 程序包org.springframework.boot不存在java: 程序包org.springframework.boot.autoconfigure不存在java: 找不到符号解决方法:勾上之后就可以正常运行了。

#spring boot
springboot项目配置数据库连接池Druid

application文件spring:application:name:datasource:driver-class-name: com.mysql.cj.jdbc.Drivertype: com.alibaba.druid.pool.DruidDataSourceurl: jdbc:mysql://localhost:3306/xxx?useSSL=false&useUnicode=

#spring boot#数据库#java
    共 12 条
  • 1
  • 2
  • 请选择