简体   繁体   中英

Java classes looks different (.java) when I imported a Spring Boot project in IntelliJ IDEA

I imported a Spring Boot project from GitLab in IntelliJ IDEA. And the classes look different in the project, they have this form: ApiDemo.java , ApiDevice.java . All the classes have this form. The problem is that I cannot run the unit tests, there is no button to run the unit tests. And I need to run these tests. How can I do in this situation? In other projects classes looks like this: TransDemo , TransApi and they have a blue circle with "c" in the middle.

Use Windows Explorer (if you use Windows OS, or something like this in Linux, macOS). Delete metadata what generated by IntelliJ IDEA IDE ( *.iml file, metadata directory), then reimport project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM