Add external library .jar to Spring boot .jar internal /lib

前端 未结 7 1358
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 23:04

I have an external .jar that cannot be imported from public repositories using pom.xml, it\'s sqljdbc41.jar.

I can run the project locally from my IDE,

7条回答
  •  醉话见心
    2020-11-29 23:29

    In Spring Boot: I also faced similar issue and below code helped me.

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                1.5.7.RELEASE
                
                    
                        
                            repackage
                        
                    
                
                
                    true
                
            
        
    
    

提交回复
热议问题