我知道Wildfly Aplication Server提供javax:javaee-api
和org.slf4j:slf4j-api
,即如果您正在 Maven 项目中工作,则可以
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope> <!-- Provided by the container -->
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.7</version>
<scope>provided</scope> <!-- Provided by the container -->
</dependency>
<!-- The implementation -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>test</scope>
</dependency>
...
</dependencies>
我可以对GlassFish 4.1做同样的事吗?它在文档中的位置如何?提前感谢您的回答。