1) How to start jetty in Maven?
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#
http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#maven-http-connector
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>edu.xmu.jetty</groupId> <artifactId>jetty-core</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>jetty-core Maven Webapp</name> <url>http://maven.apache.org</url> <properties> <jetty.version>9.2.0.v20140526</jetty.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>jetty-core</finalName> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.version}</version> <configuration> <webApp> <contextPath>/jetty</contextPath> </webApp> </configuration> </plugin> </plugins> </build> </project>
2) How to transfer File using SFTP?
3) How to config tomcat as static file server?
1> http://stackoverflow.com/questions/7068046/how-can-i-list-all-the-files-in-folder-on-tomcat
Change web.xml:
<init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param>
To:
<init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param>
4) How to use AOP for easy logging?
5) How to config embeded jetty for built-in server test?
package edu.xmu.jetty; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.server.handler.HandlerCollection; import org.eclipse.jetty.servlet.ServletContextHandler; public class XMUJettyServer { public static void main(String[] args) throws Exception { Server server = new Server(); ServerConnector connector = new ServerConnector(server); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); connector = new ServerConnector(server); connector.setPort(8888); server.addConnector(connector); connector = new ServerConnector(server); connector.setPort(9999); server.addConnector(connector); HandlerCollection handlerCollection = new HandlerCollection(); ServletContextHandler contextHandler = new ServletContextHandler(); contextHandler.setContextPath("/jetty"); contextHandler.addServlet(HelloServlet.class, "/hello"); contextHandler.addServlet(WelcomeServlet.class, "/welcome"); handlerCollection.addHandler(contextHandler); ServletContextHandler contextHandler2 = new ServletContextHandler(); contextHandler2.setContextPath("/jetty2"); contextHandler2.addServlet(HelloServlet.class, "/hello"); contextHandler2.addServlet(WelcomeServlet.class, "/welcome"); handlerCollection.addHandler(contextHandler2); server.setHandler(handlerCollection); server.start(); server.join(); } }
package edu.xmu.jetty; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class WelcomeServlet extends HttpServlet { private static final long serialVersionUID = -8222528449250075162L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("WELCOME"); super.doGet(req, resp); } }
package edu.xmu.jetty; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HelloServlet extends HttpServlet { private static final long serialVersionUID = -8222528449250075162L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("HELLO"); super.doGet(req, resp); } }
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>edu.xmu.jetty</groupId> <artifactId>jetty-core</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>jetty-core Maven Webapp</name> <url>http://maven.apache.org</url> <properties> <jetty.version>9.2.0.v20140526</jetty.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> <version>${jetty.version}</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> <version>${jetty.version}</version> </dependency> </dependencies> </project>
6) How HashMap works in Java? Why iteration keyset less effecient?
How TreeMap & TreeSet works in JDK?
http://cl315917525.iteye.com/blog/835107
7) WebService? WSDL? SOAP?
http://www.w3schools.com/Webservices/ws_wsdl_ports.asp
8) Hibernate In Depth
9) Spring AOP In Depth
10) Java FileWatcher?
11) Java Scheduler??
12) Install Eclipse Plugin offline?
1) http://stackoverflow.com/questions/5482554/how-to-install-plugin-for-eclipse-from-zip
2) http://www.crifan.com/install_eclipse_plugin_from_compressed_package_zip_file/
13) Spring Batch/Integration???
14) How to start a process in java??
1) http://stackoverflow.com/questions/3643939/java-process-with-input-output-stream
2) http://stackoverflow.com/questions/9869101/reading-inputstream-from-java-process
15) JVM Stack & Heap Memory Model?
1) http://javarevisited.blogspot.com/2013/01/difference-between-stack-and-heap-java.html
2) http://programmers.stackexchange.com/questions/65281/stack-and-heap-memory-in-java
3) http://android.blog.51cto.com/268543/50100
16) Chain of Responsibility Pattern?
17) Spring IoC bean's scopes?
18) B-Tree, B+ Tree, Black-Red-Tree?
B-Tree means balanced tree.
B+tree are enhanced version of B-tree for file/db index. All nond stores in leaf.
BR Tree is a self balanced binary tree which works exactly like B+Tree whose "jie" is 3. But BR Tree is easier to impl than B+Tree.
19) Java Memory Model?
http://www.cs.umd.edu/~pugh/java/memoryModel/
20) How to use "Timer" and "ScheduledThreadPoolExecutor"?
21) How to create transaction in spring? The propagate of transaction?
22) How to optimize SQL?
23) What's memcached?
24) How to create auto increment primary key in Oracle?
http://stackoverflow.com/questions/11296361/how-to-create-id-with-auto-increment-on-oracle
25) IO Performance tuning:
http://www.oracle.com/technetwork/articles/javase/perftuning-137844.html
http://zheng12tian.iteye.com/blog/1100721
26) How to bypass E-Git SSL Error?
http://gitblit.com/faq.html
相关推荐
BI(Business ...以上就是 BI Question List.doc 文件中涵盖的主要知识点,这些内容涵盖了数据仓库的设计、构建和ETL过程中涉及的关键技术和概念。理解并掌握这些知识,对于从事BI工作的专业人士来说至关重要。
该项目涉及的是一款注塑组件,由1种组件和4种不同零件装配组成,不包括线缆,零件重量在50-200克之间。在项目执行前,我们需要考虑零件的详细尺寸、外形以及加工前后的图片以进行精确的设计和加工。...
根据给定的文件信息,我们可以深入探讨PMP(Project Management Professional)项目管理专业认证中涉及的关键知识点,特别是在成本估算、项目选择与预算编制方面。以下是对文件中提及的知识点的详细解析: ...
Emule Kad 网络分析 一、概述 3 二、协议参数分析 3 2.1 BootStrap Req/Res 3 2.2 Hello Req/Res 4 2.3 Kad Req/Res 4 2.4 Kad Search/Publish Req/Res 5 2.5 Kad Firewalled Req/Res 6 ...附录2(Question List): 14
24点题目和答案 格式: <string>1118 (1+1+1)*8 <string>1126 (1+1+2)*6 <string>1127 (1+2)*(1+7) <string>1128 (1+1*2)*8</string>
mask = (~pd.Series(map(itemgetter('question'), items)).duplicated()).tolist() return list(compress(items, mask)) ``` **解析:** 1. **创建Series:** 将`items`列表中所有字典的`question`键值提取出来,...
这份"python_interview_question-master.zip"资源包含了丰富的面试题目,旨在帮助Python学习者和求职者全面巩固和提升Python知识,涵盖了从基础语法到高级特性的全方位考察,同时特别加入了爬虫和Web开发的相关内容...
而“qq list”可能是“question list”或“quick list”的缩写,表示问题列表或快速参考指南。 “企业(假人qq列表)”这部分比较模糊,可能是指项目中涉及的模拟企业或测试用例,这里的“假人”可能指的是模拟用户...
Collection是Java提供的一个集合框架,包括List、Set等接口及其实现类。线程同步是Java多线程编程中用于控制多个线程访问共享资源的一种机制。synchronized关键字是实现线程同步的主要方式。 ### 线程相关问题 在...
问题生成纸张列表 神经问题生成(NQG)必读论文的摘要 由和贡献。 ... 2.9其他方向 2.应用 2.1难度可控的QG 2.2会话QG 2.3提出深层问题 2.4结合质量检查和质量检查 ...Ghader Kurdi,Jared Leo,Bijan Parsia,Uli ...
3. **集合框架**:List、Set、Map接口的实现类及其特性,如ArrayList、LinkedList、HashSet、HashMap等,以及它们之间的区别和应用场景。 4. **多线程**:线程的创建方式,同步机制(synchronized关键字,wait/...
It provides a list of statements and asks which two are true. **Knowledge Points:** - **Deadlocks:** A deadlock occurs when two or more threads are blocked forever waiting for each other to release...
1. Python编程基础:包括对输入的处理(input()函数),数据的分隔和处理(split()函数),以及列表的使用(list)。 2. 数学运算:使用math库进行数学计算,如计算平方根(sqrt()函数)和四舍五入(round()函数)...
通过以上知识点的分析,我们可以看到Python练习题Question4涉及的核心内容包括字符串的输入、处理,列表与元组的转换,以及数据的输出显示。这些都是Python编程中非常基础且常用的操作,对理解后续的高级编程概念和...
公司农业管理系统java源码 leetcode-by-company leetcode question list by companies, include the premium questions
从提供的文件名“python练习题Question93.txt”可以推测,这是一个练习文件,用于练习Python语言的特定概念或技术。 2. 编程练习的重要性:标题中出现了大量重复的“python练习题”,这强调了通过不断实践来加强...
标题中提到的是一个文件名“python练习题Question94.txt”,而描述中包含了大量重复的“python练习题”字样,这表明文档的主要内容是围绕Python编程语言的练习题。在这个上下文中,描述并没有提供具体的知识点,它...
文件中定义的函数名为printList,但按照Python的命名习惯,应该使用小写字母和下划线分隔单词,例如print_list。 2. 列表的创建和操作:Python中的列表是一种有序集合,能够存储多个元素,且元素的类型可以不同。在...
首先,文件的标题是“python练习题Question76.txt”,这表明该文档是一个关于Python编程语言的练习题。从标题中我们可以提取出的关键词是“Python练习题”,这意味着文档的目的是提供给学习者一些编程练习,帮助他们...