随笔分类 - spring
摘要:1 jdbc.properties # mysql jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.jdbcUrl=jdbc:mysql://192.168.1.xxx:3306/kintech_bo jdbc.user=root jdbc.password=ro
阅读全文
摘要:参考:https://blog.csdn.net/qq_42207808/article/details/112258835 1.配置pom.xml 引入目前最新得2.2.9版本 <dependency> <groupId>com.bstek.ureport</groupId> <artifactI
阅读全文
摘要:spring-mvc 配置 rabbitmq 出现问题。 我的解决方案如下: 1 找到配置文件 spring-rabbitmq.xml 我的配置文件叫:spring-rabbitmq.xml,你们按照自己的查找。 2 定位如下URI 接着 Ctrl+鼠标左键 3 确定spring-rabbit-x.
阅读全文
摘要:原因: Chrome 稳定版禁用 document.domain setter 解决方案(4种): 1 使用低版本Chrome缺点:无法保证用户浏览器版本。 2 浏览器设置:浏览器地址栏输入 chrome://flags/#origin-agent-cluster-default然后修改 Origi
阅读全文
摘要:java.net.BindException: 地址已在使用,也可以说是端口被占用,通常出现在启动服务的时候。 安装netstat: sudo yum install net-tools 1、出错地方如图所示: 2、执行netstat -alnp | grep 8125 3、kill - 9 189
阅读全文
摘要:起因: 老项目是SpringMVC,为了之后能使用更方便的SpringBoot。 所以在其中添加了SpringBoot项目, 但是老项目SpringMVC使用的Hibernate,SpringBoot希望使用JPA 解决方案: 一 POM 说明: 1 spring boot标签中,是需要添加的架包
阅读全文
摘要: 参考: https://blog.csdn.net/weixin_44341110/article/details/115208375 https://blog.csdn.net/qq_40929531/article/details/103956332 我是sessionFactory 报错
阅读全文
摘要:参考官网:Process Engine 配置 | docs.camunda.org 一 POM 注意: 1 低版本c3p0会报错:Method com/mchange/v2/c3p0/impl/NewProxyResultSet.isClosed()Z 千万记得要删除Target包下的旧版本!!!
阅读全文
摘要:代码很简单,大家看一下就好了 @Override public List<EntityVO> findMachineToPlan(Integer age) { String sql="select * from Test where age=:age"; Query query = em.creat
阅读全文
摘要:网上的写法,都有点不太一样。 首先,看一下我的gateway版本 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> <vers
阅读全文
摘要:一般来说,你点击share后,是这样的。 它会带上很长一串签名。 如果想直接通过 http://localhost:9090/myBucket/1.png 访问。 只需要: 1 选择 bucket 2 选择 edit policy 3 prefix=* Read and Write 就可以了
阅读全文
摘要:POM 如果版本有问题,就参考这个:http://bytedeco.org/download/ <!-- ffmpeg --> <dependency> <groupId>org.bytedeco</groupId> <artifactId>javacv-platform</artifactId>
阅读全文
摘要:通过@RestControllerAdvice来处理。 @RestControllerAdvice public class GlobalExceptionAdvice { private final Logger logger = LoggerFactory.getLogger(GlobalExc
阅读全文
摘要:MultipartFile 转 File public File M2F(MultipartFile file) throws Exception { File f=File.createTempFile(UUID.randomUUID().toString(), "." + FilenameUti
阅读全文
摘要:一,上传图片接口 微服务:web-common 这个接口提供给feign 来RPC调用 @RequestMapping(value = "upload", method = RequestMethod.POST) public ApiResult<FileVO> upload(HttpServlet
阅读全文
摘要:一,被调用方 web-test spring: application: name: web-test 二,web-test准备接口 package com.tenyears.webTest.controller; import org.springframework.beans.factory.a
阅读全文
摘要:报错:Could not resolve placeholder 'xxx' in value "${xxx}" 使用了网上的解决方案,一直没解决。 我知道,肯定是某个包有问题。或者说版本冲突。 先看一下我spring版本: <parent> <groupId>org.springframework
阅读全文
摘要:添加 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency> </de
阅读全文
摘要:一,设置headers KEY:Content-Type VALUE:multipart/form-data 二,设置Body 1 Key设置名为file(这个很重要) 2 File类型选择 File 3 Value上传图片 (图片需要放到Postman的file下!例如我的:C:\Users\xx
阅读全文
摘要:POM <dependency> <groupId>io.minio</groupId> <artifactId>minio</artifactId> <version>8.2.1</version> </dependency> 配置文件 #minio 文件服务器配置 minio: hostUrl:
阅读全文