代码拉取完成,页面将自动刷新
<!--
~ Copyright 1999-2018 Alibaba Group Holding Ltd.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
1、只支持postgres 数据库
2、配置文件支持postgres 路径: nacos-1.4.1\console\src\main\resources\application.properties
spring.datasource.platform=postgres
修改点:
com.alibaba.nacos.config.server.utils.PropertyUtil.loadSetting
com.alibaba.nacos.core.listener.StartingApplicationListener.judgeStorageMode
com.alibaba.nacos.config.server.service.datasource.ExternalDataSourceProperties.JDBC_DRIVER_NAME
3、maven pom.xml 增加postgres驱动
\nacos-1.4.1\pom.xml 增加声明依赖
\nacos-1.4.1\config\pom.xml 增加依赖
4、postgres 不支持 limit 1,10
ExternalStoragePaginationHelperImpl.fetchPage
com.alibaba.nacos.config.server.service.repository.extrnal.ExternalStoragePersistServiceImpl.findAllConfigInfoFragment
5、
org.springframework.jdbc.core.PreparedStatementCreator.createPreparedStatement
6、新增postgres 建表语句
7、启动应用
com.alibaba.nacos.Nacos 启动类
vm 增加参数: -Dnacos.standalone=true ; 否则是集群模式启动
8、访问路径
http://127.0.0.1:8848/nacos/
用户名和密码都是nacos
9、 like '%' 'test11122334566' '%'
com.alibaba.nacos.config.server.auth.ExternalUserPersistServiceImpl.findUserLikeUsername
com.alibaba.nacos.config.server.auth.ExternalRolePersistServiceImpl.findRolesLikeRoleName
10、The getKey method should only be used when a single key is returned
com.alibaba.nacos.config.server.service.repository.extrnal.ExternalStoragePersistServiceImpl.addConfigInfoAtomic
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。