wildfly部署项目去除项目名
参考网址:
https://blog.csdn.net/qq96289106/article/details/78441130?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166187163616780366557971%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=166187163616780366557971&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-1-78441130-null-null.142v42control,185v2control&utm_term=wildfly%2011%E9%83%A8%E7%BD%B2war%E5%8C%85%E5%B9%B6%E5%B0%86%E5%BA%94%E7%94%A8%E8%AE%BE%E4%B8%BA%E6%A0%B9%E7%9B%AE%E5%BD%95%E8%AE%BF%E9%97%AE&spm=1018.2226.3001.4187
将应用设置为根目录访问步骤
在你的项目中WEB-INF\新建jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
修改 standalone.xml 文件
位置: ${wildfly_home}/standalone/configuration/standalone.xml
搜索“<location name="/" handler="welcome-content"/>
”,将其注释掉
说明
如果 springboot 打 war 包部署
参考网址:
https://blog.csdn.net/jackflowme/article/details/104878297?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_utm_term~default-1-104878297-blog-119804112.pc_relevant_multi_platform_whitelistv4eslandingrelevant&spm=1001.2101.3001.4242.2&utm_relevant_index=4
关键步骤
42.2&utm_relevant_index=4
关键步骤