小编San*_*SSN的帖子

How to add context.xml file to embedded tomcat server

I'm trying to run my application in an embedded tomcat server using Spring-boot. I'm having my JNDI Resources and Environments configured in an XML file, placed under src/main/webapp/META-INF/context.xml in my application. When I deploy this application in a standard servlet container it works. But when I start it using an embedded server it does not recognize the JNDI resources that are present in the context files.

I tried adding the context file to the embeddedTomcatContainer programatically by using the following …

java spring tomcat spring-boot embedded-tomcat-8

14
推荐指数
1
解决办法
7256
查看次数

标签 统计

embedded-tomcat-8 ×1

java ×1

spring ×1

spring-boot ×1

tomcat ×1