首页>代码>spring boot开发实现轻量级销售团队后台管理系统>/PowerTeam-轻量级销售团队管理系统/PowerTeam/src/main/java/com/powerteam/PowerTeamApplication.java
package com.powerteam; import com.powerteam.config.PowerTeamConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; @SpringBootApplication public class PowerTeamApplication implements ApplicationListener<ContextRefreshedEvent> { public static void main(String[] args) { SpringApplication.run(PowerTeamApplication.class, args); } @Autowired private PowerTeamConfig powerTeamConfig; @Override public void onApplicationEvent(final ContextRefreshedEvent event) { powerTeamConfig.setWebRoot(event.getApplicationContext().getApplicationName() + "/"); powerTeamConfig.setAbsoluteWebRoot(this.getClass().getResource("/").getPath().replaceFirst("/", "")); } }
最近下载更多
fff2003 LV6
2023年11月18日
哇塞塞哈哈哈 LV8
2023年5月5日
lironggang LV38
2023年4月2日
tonghao LV18
2022年6月16日
2468867327 LV10
2022年5月9日
wanglinddad LV54
2022年4月16日
zhaoyangwfd LV17
2022年3月30日
liuxiao2 LV16
2022年3月10日
dawnguarda LV17
2022年3月10日
xiaokang1 LV10
2022年2月19日
最近浏览更多
akittyboy LV9
4月16日
微信网友_6927932988952576 LV12
3月31日
eagerwujin LV4
2月22日
admin_z LV22
1月28日
WBelong LV7
2023年12月27日
hhh12345 LV7
2023年12月23日
fff2003 LV6
2023年11月17日
yykkzzll LV4
2023年10月28日
sunshine9920 LV12
2023年10月22日
edpwyg LV14
2023年10月22日