proxyBeanMthods annotation error when running springboot application

前端 未结 4 1298
长情又很酷
长情又很酷 2021-01-21 21:45

I am trying to run my first springboot application but facing some issues.

In my application file, this is my code

package com.clog.ServiceMgmt;

import         


        
4条回答
  •  盖世英雄少女心
    2021-01-21 22:38

    I had this error happen in a Spring Boot project where I added a custom dependency that made use of Spring (not Spring Boot). The issue in my custom dependency was that it had the following plugin configuration:

    
        org.apache.maven.plugins
        maven-shade-plugin
        2.4.3
        
            
                package
    
                
                    shade
                
    
                
                    
                        
                            com.example.Main
                            
                                ${project.name}
                                ${project.version}
                                Vendor Name, ${timestamp}
                            
                        
                    
    
                    false
                
            
        
    
    

    Once I removed the shade plugin from my custom dependency, the error disappeared.

提交回复
热议问题