• Jboss部署SpringBoot2 JPA


    Jboss部署SpringBoot2 JPA

    目录结构

    .
    └── webapp
        └── META-INF
            ├── jboss-deployment-structure.xml
            └── jboss-web.xml
    

    jboss-deployment-structure.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-deployment-structure>
    	<deployment>
    		<exclude-subsystems>
    
    			<!-- 排除 javax.persistence.api 依赖 -->
    			<subsystem name="jpa" />
    
    			<!-- 排除 org.jboss.logging 依赖 -->
    			<subsystem name="logging" />
    		</exclude-subsystems>
    		<exclusions>
    			<!--<module name="javax.validation.api" />-->
    			<!--<module name="org.hibernate.validator" />-->
    			<!--Log4j exclude-->
    			<module name="org.slf4j" />
    			<module name="org.slf4j.impl" />
    
    			<!-- 排除 javax.persistence.api 依赖 -->
    			<module name="javaee.api" />
    			<module name="javax.persistence.api" />
    			<module name="org.hibernate" />
    		</exclusions>
    		<!--<resources>
    			<resource-root path="lib" />
    		</resources>
    		<local-last value="true" />-->
    		<dependencies>
    
    			<!-- 排除 org.apache.httpcomponents 依赖 -->
    			<!-- <module name="org.apache.httpcomponents" export="true"/> -->
    
    			<!-- 排除 org.jboss.logging 依赖 -->
    			<!-- <module name="org.jboss.logging" export="true" /> -->
    
    			<module name="javax.activation.api" export="true" />
    			<module name="javax.annotation.api" export="true" />
    			<module name="javax.ejb.api" export="true" />
    			<module name="javax.el.api" export="true" />
    			<module name="javax.enterprise.api" export="true" />
    			<module name="javax.enterprise.deploy.api" export="true" />
    			<module name="javax.inject.api" export="true" />
    			<module name="javax.interceptor.api" export="true" />
    			<module name="javax.jms.api" export="true" />
    			<module name="javax.jws.api" export="true" />
    			<module name="javax.mail.api" export="true" />
    			<module name="javax.management.j2ee.api" export="true" />
    
    			<!-- 排除 javax.persistence.api 依赖 -->
    			<!-- <module name="javax.persistence.api" export="true" /> -->
    
    			<module name="javax.resource.api" export="true" />
    			<module name="javax.rmi.api" export="true" />
    			<module name="javax.security.auth.message.api" export="true" />
    			<module name="javax.security.jacc.api" export="true" />
    			<module name="javax.servlet.api" export="true" />
    			<module name="javax.servlet.jsp.api" export="true" />
    			<module name="javax.transaction.api" export="true" />
    			<module name="javax.validation.api" export="true" />
    			<module name="javax.ws.rs.api" export="true" services="export" />
    			<module name="javax.xml.bind.api" export="true" />
    			<module name="javax.xml.registry.api" export="true" />
    			<module name="javax.xml.soap.api" export="true" />
    			<module name="javax.xml.ws.api" export="true" />
    			<module name="javax.api" export="true" />
    
    			<!-- 排除掉jboss的 slf4j 和 log4j 实现,使用我们程序自己的包 -->
    			<!--<module name="org.apache.log4j" export="true" />-->
    			<!--<module name="org.slf4j" export="true" />-->
    			<!--<module name="org.apache.commons.logging" export="true" />-->
    			<module name="org.jboss.logging.jul-to-slf4j-stub" export="true" />
    
    		</dependencies>
    	</deployment>
    </jboss-deployment-structure>
    

    jboss-web.xml

    <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN"  
    "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"> 
    <jboss-web>
    	<context-root>app</context-root>
    </jboss-web>
    
  • 相关阅读:
    为 DropDownList 选项添加背景或样式
    杂七杂八——Name与x:Name的关系
    原创Godaddy帐户取消信用卡或PayPla绑定,防止无端扣费[图文教程]
    dota中名词解释
    在 JavaScript 中如何创建多行字符串(JavaScript Multiline String)
    HDU 4035 Maze(概率DP)
    获取想要得到的风格设计属性描述————Resources.Theme类函数public TypedArray obtainStyledAttributes()
    Android 异步更新UI —— Handler 【复杂的数据操作另起新线程然后在当前UI线程更新结果】
    超链接中文乱码问题
    java中的final变量
  • 原文地址:https://www.cnblogs.com/xcmelody/p/11904970.html
Copyright © 2020-2023  润新知