个人随笔
李兵~
学无止境
展开
-
Linux有网络下安装pgsql
Linux有网络下安装pgsql原创 2022-12-07 16:14:55 · 729 阅读 · 1 评论 -
解决 Error creating bean with name ‘entityManagerFactory‘ defined in class path resource
class path resource [] cannot be resolved to URL because it does not existUnable to resolve persistence unit root URLentityManagerFactory' defined in class path resource原创 2022-10-24 12:05:56 · 3762 阅读 · 2 评论 -
SpringCloud Gateway 增加了context-path 404解决办法
1、nginx 代理了后端网关地址时配置了 /api 如下:location /api { proxy_pass http://127.0.0.1:21212; }2、gateway 配置如下:routes: - id: system-server uri: lb://intelligent-system predicates: - Path=/api/system/**, filters: - Dedu...原创 2022-05-23 12:57:51 · 1196 阅读 · 1 评论 -
mybatis plus 出现 Invalid bound statement (not found): *.*.selectPage
先看官网的指示: 错误介绍前提条件配置的很完整直到看到如下介绍时 SqlSessionFactory不要使用原生的,请使用MybatisSqlSessionFactory 工程配置的是双数据源,原先使用的时mybatis,由于升级了就换成了mybatis plus了;当我检查时发现代码如下:@Bean@ConfigurationProperties(prefix = "mybatis")public SqlSessionFactoryBean sqlSessionFactoryBe.原创 2021-08-25 17:01:56 · 1550 阅读 · 1 评论 -
nginx常用负载均衡配置
轮询方式 询方式是默认方式,每个请求按照时间顺序逐一分配到不同的服务器地址处理,服务宕机自动剔除。#配置IP为172.16.2.101:80 的主机server { listen 80; server_name 172.16.2.101; location / { proxy_pass http://web_server; }...原创 2019-12-13 17:44:27 · 132 阅读 · 0 评论