Spring Boot app deployed to Glassfish is giving strange results

后端 未结 2 896
眼角桃花
眼角桃花 2020-12-17 01:58

As mentioned here, I am having a heck of a time getting my small Spring-Boot project to deploy \"correctly\" to Glassfish. It runs fine using the embedded Tomcat, but once

2条回答
  •  一向
    一向 (楼主)
    2020-12-17 02:29

    I had this problem with Payara 5, I understand the problem became from Glassfish.

    Versions:

    1. Payara 5.192
    2. Spring Boot 2.1.6

    The solution worked for me:

    I added this dependency in the pom.xml.

    
        org.springframework.boot
        spring-boot-starter-batch
        2.1.4.RELEASE
    
    

    My glassfish-web configuration:

    
    
    
        
        
            
              Keep a copy of the generated servlet class' java code.
            
          
        
        /micuenta-api
        
        
    
    

提交回复
热议问题