会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132358个问题
JAVA 全系列/第二十一阶段:分布式医疗云平台/项目环境搭建(旧) 166楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/补充整理及最后部署(旧) 168楼

在确认检查按钮按下后出现开始检查失败,后台控制台输出语句如下,应该怎么解决呢

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2392771f] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@ff2f031] will not be managed by Spring
==>  Preparing: SELECT item_id,co_id,item_ref_id,item_name,item_type,num,price,amount,remark,status,create_time FROM his_care_order_item WHERE item_id=? 
==> Parameters: ITEM1363797224076738560(String)
<==    Columns: item_id, co_id, item_ref_id, item_name, item_type, num, price, amount, remark, status, create_time
<==        Row: ITEM1363797224076738560, CO1363797223476953088, 2, 血常规, 1, 1.00, 5.00, 5.00, 按要求检查, 1, 2021-02-22 10:26:11
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2392771f]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@72440f67] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@ff2f031] will not be managed by Spring
==>  Preparing: SELECT co_id,co_type,user_id,patient_id,patient_name,ch_id,all_amount,create_by,create_time,update_by,update_time FROM his_care_order WHERE co_id=? 
==> Parameters: CO1363797223476953088(String)
<==    Columns: co_id, co_type, user_id, patient_id, patient_name, ch_id, all_amount, create_by, create_time, update_by, update_time
<==        Row: CO1363797223476953088, 1, 2, HZ1363797038256488448, CC, CH1363797149741088768, 75.00, 扁鹊, 2021-02-22 10:26:11, , null
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@72440f67]
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5955cb9f] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@ff2f031] will not be managed by Spring
==>  Preparing: SELECT ch_id,user_id,user_name,patient_id,patient_name,dept_id,dept_name,receive_type,is_contagious,care_date,case_date,reg_id,case_title,case_result,doctor_tips,remark FROM his_care_history WHERE ch_id=? 
==> Parameters: CH1363797149741088768(String)
<==    Columns: ch_id, user_id, user_name, patient_id, patient_name, dept_id, dept_name, receive_type, is_contagious, care_date, case_date, reg_id, case_title, case_result, doctor_tips, remark
<==        Row: CH1363797149741088768, 2, 扁鹊, HZ1363797038256488448, CC, 101, 内科, 0, 0, 2021-02-22 10:25:53, 2021-02-22, GH1363797039326035968, cc, cc, cc, cc
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5955cb9f]
Creating a new SqlSession
Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1fecaacc]
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@ff2f031] will be managed by Spring
==>  Preparing: INSERT INTO his_check_result ( item_id, check_item_id, check_item_name, price, patient_id, patient_name, result_status, reg_id, create_time, create_by ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) 
==> Parameters: ITEM1363797224076738560(String), 2(Integer), 血常规(String), 5.00(BigDecimal), HZ1363797038256488448(String), CC(String), 0(String), GH1363797039326035968(String), 2021-02-25 19:00:19.98(Timestamp), 扁鹊(String)
Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1fecaacc]
Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1fecaacc]
Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1fecaacc]


JAVA 全系列/第二十一阶段:分布式医疗云平台/检查管理前后端开发(旧) 169楼

我父项目的POM文件如下:

<>
    <>4.0.0</>

    <>
        <>org.springframework.boot</>
        <>spring-boot-starter-parent</>
        <>2.2.6.RELEASE</>
        </> </>

    <>com.cerana</>
    <>open-his</>
    <>1.0</>
    <>pom</>
    <>门诊管理系统</>

    <>
        <>1.8</>
        <>1.5.3</>
        <>1.1.21</>
        <>3.3.1.tmp</>
        <>1.26.7</>
        <>3.2.3</>
        <>1.2.62</>
        <>5.1.1</>
        <>1.19</>
        <>2.7.5</>
    </>

    <>
        <>
            <>
                <>com.alibaba</>
                <>druid-spring-boot-starter</>
                <>${druid.version}</>
            </>
            <>
                <>com.baomidou</>
                <>mybatis-plus-boot-starter</>
                <>${mybatis-plus.version}</>
            </>
            <>
                <>org.apache.shiro</>
                <>shiro-spring-boot-web-starter</>
                <>${shiro-boot.version}</>
            </>
            <>
                <>com.github.tobato</>
                <>fastdfs-client</>
                <>${fastdfs.version}</>
            </>
            <>
                <>org.crazycake</>
                <>shiro-redis</>
                <>${shiro-redis.version}</>
            </>

            <>
                <>com.alibaba</>
                <>fastjson</>
                <>${fastjson.version}</>
            </>

            <>
                <>cn.hutool</>
                <>hutool-all</>
                <>${hutool.version}</>
            </>
            <>
                <>eu.bitwalker</>
                <>UserAgentUtils</>
                <>${bitwalker.version}</>
            </>

            <>
                <>org.apache.dubbo</>
                <>dubbo-spring-boot-starter</>
                <>${dubbo.version}</>
            </>
            <>
                <>org.apache.dubbo</>
                <>dubbo-dependencies-zookeeper</>
                <>${dubbo.version}</>
                <>pom</>
                <>
                    <>
                        <>org.slf4j</>
                        <>slf4j-log4j12</>
                    </>
                </>
            </>
        </>
    </>

</>


结果发现好多包导不进来:

image.png

导不进来的包具体有:

druid-spring-boot-starter

mybatis-plus-boot-starter

shiro-spring-boot-web-starter

fastdfs-client

shiro-redis

hutool-all

dubbo-dependencies-zookeeper


我使用的IDEA版本:2019 2.2

我使用的maven版本3.6.0,且已做了如下的阿里云镜像

<mirror>

<id>nexus-aliyun</id>

<mirrorOf>*</mirrorOf>

<name>Nexus aliyun</name>

<url>http://maven.aliyun.com/nexus/content/groups/public</url>

</mirror>


请问:

  1.  可能是什么原因导致包到不进来?

  2. 要如何解决?

JAVA 全系列/第二十一阶段:分布式医疗云平台/项目环境搭建(旧) 170楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/看病就诊前后端开发(旧) 171楼

zookeeper连接不成功,什么原因造成的?已经修改过超时连接的时间。

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-02-15 23:32:05.730 ERROR 15944 --- [           main] o.s.boot.SpringApplication               : Application run failed

java.lang.IllegalStateException: zookeeper not connected
    at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:83) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.<init>(ZookeeperRegistry.java:85) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.zookeeper.ZookeeperRegistryFactory.createRegistry(ZookeeperRegistryFactory.java:42) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:121) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.RegistryFactoryWrapper.getRegistry(RegistryFactoryWrapper.java:34) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.RegistryFactory$Adaptive.getRegistry(RegistryFactory$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.integration.RegistryProtocol.getRegistry(RegistryProtocol.java:298) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:204) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:60) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:143) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:315) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:287) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:205) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$exportServices$13(DubboBootstrap.java:873) ~[dubbo-2.7.5.jar:2.7.5]
    at java.base/java.util.HashMap$Values.forEach(HashMap.java:981) ~[na:na]
    at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportServices(DubboBootstrap.java:861) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:703) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:45) ~[dubbo-2.7.5.jar:2.7.5]
    at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.5.jar:2.7.5]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at com.bjsxt.ErpApplication.main(ErpApplication.java:16) [classes/:na]
Caused by: java.lang.IllegalStateException: zookeeper not connected
    at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:80) ~[dubbo-2.7.5.jar:2.7.5]
    ... 38 common frames omitted


JAVA 全系列/第二十一阶段:分布式医疗云平台/进销存系统前后端开发(旧) 172楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/系统管理前后端开发(旧) 173楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/系统管理前后端开发(旧) 174楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/系统管理前后端开发(旧) 175楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/系统管理前后端开发(旧) 178楼
JAVA 全系列/第二十一阶段:分布式医疗云平台/系统管理前后端开发(旧) 179楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637