Comments (4)
when the query result is empty, the method jdbcTemplate.queryForMap will throw an exception, but try catch handles the exception.
this is a screenshot of the code running in the develop branch. I think the code in your screenshot is not the latest one.
from nacos.
It should just test whether the database connection is normal. If it is not normal, DataAccessException will be thrown, so it doesn't matter what SQL is used.
from nacos.
It should just test whether the database connection is normal. If it is not normal, DataAccessException will be thrown, so it doesn't matter what SQL is used.
it will throw exception if there is no data in the table ,this test is not valid
from nacos.
when the query result is empty, the method jdbcTemplate.queryForMap will throw an exception, but try catch handles the exception.
this is a screenshot of the code running in the develop branch. I think the code in your screenshot is not the latest one.
thanks ,this bug was fixed in latest version _
from nacos.
Related Issues (20)
- After the NamingService shutdown, there are still related threads remaining 停止NamingService后仍然有相关线程残留 HOT 3
- Add unit tests.
- 配置管理-监听查询-通过IP维度无法查询监听信息 HOT 7
- Naming Convention for Unit Test Classes in the Test Module. HOT 4
- [Warning] Accepted a connection with deprecated protocol 'TLSv1.1' HOT 1
- nacos2.0.3 k8s环境部署,出现3个节点互相不通。 HOT 1
- The Nacos server is version 2.2.3. After enabling authentication, newly registered users cannot use it for service registration, but user nacos can HOT 1
- nacos server2.3.0 开启了鉴权后,nacos client1.1.4无法通过配置username和password通过鉴权 HOT 1
- Server check fail, please check server nacos-server.xxx.com ,port 9848 is available , error ={} HOT 1
- 2.2.1、2.2.2、2.2.3、2.2.4版本,在达梦数据库下,更新配置信息,提示违反唯一性约束 HOT 3
- Linux服务器上利用Docker启动nacos,一启动后,nacos占用CPU即超过100% HOT 1
- does nacos support delay register HOT 1
- nacos 服务注册后老是自动掉,同样的配置,子工程的网关不会..人已经麻了 HOT 3
- After upgrading to version 2.3.2 of Nacos, microservice startup reported an error.
- 数据源替换为postgresql后导入配置时报错 HOT 2
- 客户端重复注册,责任节点更新版本号。非责任节点无法更新
- nacos uses vip+nginx load balancing to cause a client to appear UNAVAILABLE: Network closed for unknown reason HOT 3
- error: Cannot create stream 545225 greater than Last-Stream-ID 545223 from GOAWAY. HOT 2
- grpc 5s重复注册一次服务,集群之间可以同步数据,但是无法同步客户端的lastRenewTime HOT 1
- 使用ceph块存储,启动nacos时报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nacos.