Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Spring Boot,并且必须将我的应用程序配置为开发配置文件和发布配置文件。同时想用wro4j。在开发配置文件中,我必须使用 wro4j 插件还是使用过滤器?发布模式也一样,我要放什么?
我认为这取决于您需要它来做什么,运行时还是构建时解决方案?
运行时解决方案,您可能必须添加过滤器并根据环境(开发或发布)对其进行配置,看看:
http://wro4j.readthedocs.io/en/stable/ConfigureWro4jViaSpring/
对于构建时间,您将不得不添加 Maven 依赖项。