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 the warning problem when springboot starts up after adding thymeleaf-layout-dialect to pom

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

Share

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

Today, I will talk to you about how to solve the warning problem when springboot starts up after adding thymeleaf-layout-dialect to pom. Many people may not know much about it. In order to make you understand better, the editor summarized the following content for you. I hope you can get something according to this article.

Warning messages are as follows:

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/D:/xxx) to method java.lang.Object.finalize ()

WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass

WARNING: Use-- illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

Some information on the Internet is mainly aimed at dealing with the warning message WARNING: An illegal reflective access operation has occurred. Most of the recommended jdk versions are down to 1.8 if they are above 1.8. Then there are some measures to block warning messages.

My solution process is as follows:

The jdk version is 11, and the groovy version is 2.4.x when you check the jar library and find that there is a warning. Add the 3.0.5 version of groovy to pom, then go to the jar library to delete the old version of jar, and then start the project warning to disappear.

After reading the above, do you have any further understanding of how to solve the warning problem when springboot starts up after adding thymeleaf-layout-dialect to pom? If you want to know more knowledge or related content, 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