web-inf

项目ITP(五) spring4.0 整合 Quartz 实现任务调度

一个人想着一个人 提交于 2020-01-16 11:48:39
前言   系列文章: [传送门]   项目需求:     二维码推送到一体机上,给学生签到扫描用。然后需要的是 上课前20分钟 ,幸好在帮带我的学长做 p2p 的时候,接触过。自然 quartz 是首选。所以我就配置了下,搞了个小样例给大家。 正文   spring4.0 整合 Quartz 实现 任务调度 。这是期末项目的最后一篇,剩下到暑假吧。   Quartz 介绍    Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java application - from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of jobs;    Quartz框架是一个全功能、开源的任务调度服务,可以集成几乎任何的java应用程序—从小的单片机系统到大型的电子商务系统

How to move “WEB-INF/lib” folder to a sub folder in a Java Dynamic Web App?

这一生的挚爱 提交于 2020-01-16 05:27:05
问题 How can I configure a Java Dynamic Web Project in Eclipse so the WEB-INF/lib folder is located in a sub folder? For example, say I wanted my "lib" folder to be located here: src/main/webapp/WEB-INF/lib and my webapp root is here: src/main/webapp/ How do I configure this in Eclipse? I know I could just "add the jars", but I'd like them to be organized under my "Web App Libraries" section in the Libraries section of my app's build path. What I've tried: I've tried adding "Web App Libraries" by

web-project的/WEB-INF/lib

喜夏-厌秋 提交于 2020-01-15 05:17:14
哪些jar包应该放到你的/WEB-INF/lib中?(目前为止,我的classpath只配置了dt.jar和tools.jar,也就是说,我的web-project所用的所有jar包都没有配置到classpath中,而是直接放到/WEB-INF/lib中的) 放到/WEB-INF/lib中的jar包主要是为了支持你的wep-project的运行 而如果你仅仅是想编译一些java文件,那么就直接用eclipse为你的项目导入jar包即可了,但是要注意,eclipse导入jar包只是用来帮助 编译 你的java文件的,并不能用来支持你的web-project的 运行 !要想支持你的web-project的运行,就需要把jar包放入/WEB-INF/lib   比如说,你使用JSTL,那么JSTL的jar包就必须放入/WEB-INF/lib中支持你的app的运行! 当然,你配置classpath也可以! (后来测试了一下,不行。) 来源: https://www.cnblogs.com/qrlozte/p/3184221.html

实战jsp预编译,充分享受jsp预编译的好处!

岁酱吖の 提交于 2020-01-07 09:04:54
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> jsp预编译有以下好处: 1.省去第一次运行jsp时的编译所花费的时间,实现servlet一样,一步到位的运行。 2.有效的保护源代码,在产品发布的时候只需要提供依据编译好的class文件,不需要提供jsp源文件,对保护jsp源代码有好处,虽然class文件没有混淆,但是很少人愿意手工去把预编译jsp产生的class文件还原为jsp(目前还没发现有自动还原为jsp的工具)。 但是,也注意,如果为了享受第二个好处,那么也就注意,你需要为不同的servlet容器进行不同的预编译。 比如tomcat的是org.apache.jasper.JspC,而Weblogic的是 weblogic.jspc 用Tomcat进行预编译的ant脚本如下: build.properties的内容为: tomcat.home=D:/jakarta-tomcat-5.5.9 webapp.path=E:/lizongbo/mywebapp build.xml的内容为: <project name="Webapp Precompilation" default="all" basedir="."> <property file="build.properties"/> <target name="jspc"> <taskdef

Java WebApp: Loading resource from .jar located in WEB-INF

和自甴很熟 提交于 2020-01-07 05:05:13
问题 There are a lot of similar questions, but, probably, mine is a little bit different: What is the right way to load resource from inside of .jar file located in WEB-INF/lib folder (if I know the jar file name and the name of the class it resource belongs to), while Web Application is running? Should I use getServletContext().getResourceAsStream(?) for this purpose or the <name-of-known-class>.getResourseAsStream(?) , and what path do I need to specify there? So, the structure is: /WEB-INF

Configuring web host mysql database in jsp website made in Netbeans

痴心易碎 提交于 2020-01-07 03:10:29
问题 I have made a JSP website in NetBeans which I tried and tested on my local server through tomcat(using access database) and it worked fine. My web host has provided me the host, database name, username and password of the database. I want to configure my website to use this database. But I don't know how to do that. I have seen the system.properties file in web-inf/config folder whose content are like this: JNDI_NAME=java:com/env/Oracle/jndi db.login= db.password= driver=sun.jdbc.odbc

What does WEB-INF stand for in a Java EE web application? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-31 08:53:13
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . Most of the places on the internet say it stands for WEB INF ormation. I rather doubt it. The folder contains executables. Information is not a suitable name for it. 回答1: As far as I know, "INF" stands for "Information", as you said. It probably was named WEB-INF for

What does WEB-INF stand for in a Java EE web application? [closed]

丶灬走出姿态 提交于 2019-12-31 08:53:07
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . Most of the places on the internet say it stands for WEB INF ormation. I rather doubt it. The folder contains executables. Information is not a suitable name for it. 回答1: As far as I know, "INF" stands for "Information", as you said. It probably was named WEB-INF for

Struts+Tomcat搭建

吃可爱长大的小学妹 提交于 2019-12-28 05:07:13
tomcat使用(服务器端开发): 如果要安装Tomcat需要进行的配置:tomcat安装在c: \Tomcat CATALINA_HOME变量值设为: H:\Program Files (x86)\tomcat\apache-tomcat-7.0.27 CATALINA_BASE变量值设为: H:\Program Files (x86)\tomcat\apache-tomcat-7.0.27 CATALINA_TMPDIR变量值设为:H:\Program Files (x86)\tomcat\apache-tomcat-7.0.27\temp; 检测Tomcat配置是否成功: 接着可以启动tomcat,在IE中访问http://localhost:8080,如果看到tomcat的欢迎页面的话说明安装成功了 应用一之建立自己的jsp app目录 1.到Tomcat的安装目录的webapps目录,可以看到ROOT,examples, tomcat-docs之类Tomcat自带的的目录; 2.在webapps目录下新建一个目录,起名叫myapp; 3.myapp下新建一个目录WEB-INF,注意,目录名称是区分大小写的; 4.WEB-INF下新建一个文件web.xml,内容如下: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE

SpringMVC学习(2):经典的HelloWorld实现

删除回忆录丶 提交于 2019-12-25 13:17:02
前一篇简单介绍了Spring MVC的一些知识,下面就要开始学习如何把Spring MVC运用到具体的项目中去。 首先还是从一个简单的Hello World项目说起: 我机器的开发环境为: Ubuntu12.04(不同操作系统对本系列项目没有影响); 开发工具:Eclipse For JavaEE; 数据库:MySql5.5.35; 运行环境:TomCat V7.0; JDK:JDK 1.7.0_45; 项目工程为:Dynamic Web Project; 一、项目依赖的jar包: 1.Spring框架依赖的jar包: 日志:commons-logging-1.1.3.jar; JSTL支持:jakarta-taglibs-standard-1.1.2中的jstl.jar和standard.jar; 2.Spring的jar包: spring-framework-3.2.5.RELEASE/libs中的jar包(这里为了方便我直接把全部都复制过去了); 把以上的jar包全部复制到项目的WebContent/WEB-INF/lib目录中。 二、在/WEB-INF中添加web.xml文件,文件内容如下: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema