如果想在tomcat服务器启动时将jar包加载到内存,且该jar

题目

如果想在tomcat服务器启动时将jar包加载到内存,且该jar包可以被tomcat服务器上所有的应用使用,应该将该jar包复制到tomcat的()目录。

  • A、server
  • B、common/lib
  • C、server/lib
  • D、common
参考答案和解析
正确答案:B
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

以下关于Spring Boot的相关说法错误的是()

A、Spring Boot所创建的应用程序都是独立的War包,而不是Jar包

B、Spring Boot项目不需要将WAR包部署到Tomcat、Jetty等Servlet容器中,而是在启动时,自动的启动一个嵌入式的Tomcat

C、Spring Boot与其他主流框架整合时,只需在pom.xml中添加相应依赖,即可直接使用该框架,无需在项目的配置文件中添加配置

D、Spring Boot会根据类路径中的类和JAR包中的类自动配置Bean,而不需要手动配置


参考答案:A

第2题:

不同模块需要相同jar包,解决期间jar包重复引用问题,其操作中包含下面哪几项()

A.新建一个公共模块

B.扩展jar包

C.要使用引入jar包时,要先依赖公共模块

D.在这个公共模块里引入第三方jar包


参考答案:A, C, D

第3题:

下列( )类属于java.util.jar 包。

A.GZIPInputStream

B.ZipInputStream

C.JarInputSream

D.InflaterlnputStream


正确答案:C

第4题:

使用数据源时,数据库驱动程序的.jar文件应该放在()。

  • A、 应用程序的类库内
  • B、 应用程序的WEB-INF/lib下
  • C、 Tomcat根目录/lib下
  • D、 Tomcat的common/lib下

正确答案:C

第5题:

下列选项中,用于解压jar文件的命令是()

A.jar –c

B.jar –x

C.jar –v

D.jar -f


答案:B
解析:参数x用于解压

第6题:

Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()

A.Jar A

B.Jar B

C.Jar C

D.Jar D

E.Jar E


参考答案:A

第7题:

在Tomcat的目录文件中()存放着启动和运行时需要的jar文件。

A.logs

B.License

C.lib

D.config


参考答案:C

第8题:

如果想在tomcat服务器启动时将Jar包加载到内存,且该Jar包可以被tomcat服务器上所有的应用使用,应该将该jar包复制到tomcat的__________目录。

A、common

B、Server

C、common\lib

D、server\lib


参考答案:D

第9题:

maven加载jar包是通过pom.xml文件中的groupId,artifactId,version来进行jar包查找的


正确答案:正确

第10题:

A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()

  • A、The JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.
  • B、The JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.
  • C、TheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.
  • D、The JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.
  • E、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.
  • F、The JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.

正确答案:B,D,F

更多相关问题