Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve call 'refresh' before multicasting events exception in ssh Project

2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to solve the call 'refresh' before multicasting events exception in the ssh project, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

1. Introduction

Today, I made the following error when I was running the ssh project, which caused me to visit the project page.

1.ApplicationEventMulticaster not initialized-call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Sat Jul 18 22:34:04 CST 2020]; root of context hierarchy.

2.LifecycleProcessor not initialized-call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sat Jul 18 22:34:04 CST 2020]; root of context hierarchy

two。 The screenshot is as follows

3. Cause analysis

The primary reason for this situation is that there is a problem with the connection to the database, that is, we have a problem with the url connection to dataSource in the spring configuration bean. Here's what I wrote:

Jdbc:mysql://localhost:3306/db_hotel?useUnicode=true&characterEncoding=utf-8

4. Later, it was changed to read:

Jdbc:mysql://localhost:3306/db_hoteluseUnicode=true&characterEncoding=utf-8

Yes, add & and you won't make a mistake and run the project successfully! As follows:

5. The project was run successfully

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report