41 Types of Maven skeletons: ... >mvn Archetype:generate 1:internal-APPFUSE-BASIC-JSF (creating a prototype for hibernate,spring and JSF-based Web applications)2:internal-appfuse-basic-spring (creating a prototype of a Web application based on hibernate,spring and spring MVC)3:internal-appfuse-basic-struts (creating a prototype of a Web application based on hibernate,spring and Struts 2)4:internal-Appfuse-basic-tapestry (creating a prototype of a Web
Java Web, is to use Java technology to solve the relevant WEB Internet domain technology sum. The web includes two parts: the Web server and the Web client. Java applets are used on the client side, but they are very small, Java is very rich in server applications, such as servlet,jsp and third-party frameworks, and so on. Java technology has injected a powerful impetus into the development of the web domain.
Chinese name
Java Web
Including
We
1, first in the command line to perform MVN archetype:generate
2, provide input of the type of build project Choose archetype:1:internal-> APPFUSE-BASIC-JSF (appfuse archetype for creating a Web application with Hibernate, Spring and JSF)2:internal-> appfuse-basic-spring (appfuse archetype for creating a Web application with Hibernate, spring a nd Spring MVC)3:internal-> appfuse-basic-struts (appfuse archetype for creating a Web application with Hibernate, Spring a nd Struts 2)4:internal-> appf
the project is built, the structure of the project is as follows: in this project, there is no more XML than Pom.xml, but there are main, Test two packages with an app, Apptest class Pom.xml the contents of the following:
3, Maven-archetype-webappAfter the project is built, the structure of the project is as follows:In this project, there is a web-inf directory, and there are web.xml and a index.jsp
The contents of Pom.xml are as follows:
The 41 skeleton prototypes provided by Maven are
example, it refers to the. htpasswd file, which is in the same location as our. htaccess file.
Require valid-user specifies that only valid users in the. htpasswd file can access the service.1.1.2. htpasswd Configuration
User name: Password
Aaa: aaa
Not necessarily in. the configuration in the htaccess file can also be found in httpd. conf (Master configuration) to improve the efficiency of apache. Otherwise, Apache will search for the client to access the Web in every directory. the htaccess
Ubuntu system has UFW installed by default.1. Installationsudo apt-get install UFW2. Enablesudo UFW enablesudo ufw default denyAfter running the above two commands, the firewall is turned on and turned on automatically when the system starts. All external access to the native is turned off, but the native access is normal externally.3. Turn ON/offsudo ufw allow|deny [service]Open or close a port, for example:sudo UFW allow SMTP allows all external IPs
its subdirectories)First, set the "default" address to only have the most basic permissions:Options FollowSymLinksAllowOverride NoneNote that special permissions must be enabled from now on, so that no unexpected results will be generated. Please confirm carefully.For example:## This value is "None", "All", or a combination of the following: "Indexes ",# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews ".# Note that "MultiViews" must explicitly specify that --- "Options All" does not inc
# documentroot "i:/gi-2288"# site Root directory# ServerName Gi.2288.org# Domain Name# errorlog "G:/apache/dummy-gi.2288.org.80-error_log"# error Log # log records are good things, note view logging#------------above is a virtual host content# Full application:# Listen 80# Namevirtualhost 192.168.1.2:80# # ServerAdmin [email protected]# documentroot "i:/gi-2288"# ServerName Gi.2288.org# ####### #03. # syntax: # encapsulates a set of instructions that only work on a file system directory with a n
When creating an ACL on a vswitch, you can use a string or a number to name the ACL. Generally, you can use a string + a number to name the ACL for easy identification; the standard ACL or extended ACL is identified by fields. For example, standard ACL and extended ACL are identified by extended ACL.The configuration in the following example shows how to create an extended ACL named anti-virus on the vswitch and apply the acl to the in direction of fastEthernet port 0/1: switch # configure termi
for the management meeting# DocumentRoot "i:/gi-2288"# site Root directory# ServerName Gi.2288.org# Domain Name# errorlog "g:/apache/dummy-gi.2288.org.80-error_log"# error Log # log records are good things, Note view logging#------------above is a virtual host content# Full Application:# Listen 80# Namevirtualhost 192.168.1.2:80# # ServerAdmin [email protected]# DocumentRoot "i:/gi-2288"# ServerName Gi.2288.org# ####### #03. # syntax: # encapsulates a set of instructions that only work on a fil
SELECT statement again, and everything goes well:
However, to add a little change, try to insert in this table:
SQL Server will immediately let us go-we do not have the necessary permissions, so give the user the appropriate permissions (using the SA Connection):
Now run the INSERT statement again:
Everything is progressing well.
2. DENY
Deny explicitly prevents a user from obtaining the specified access
Bkjia.com exclusive Article] The Aapche server in Linux provides powerful access control functions. Users can choose to use configuration commands or. this document describes how to set the htaccess file.
1. Use common access control configuration commands for access control
1. configuration instructions
The configuration commands for Implementing Access Control in Apache include the following:
1) order command: used to specify the sequence in which access control rules are allowed or access con
Today, these two parameters have made a little effort to sort them out, so as not to be delayed. Allow and Deny can be used in apache conf Files or. htaccess Files (with Directory, Location, Files, etc.) to control access authorization for directories and Files. By...
Today, these two parameters have made a little effort to sort them out, so as not to be delayed.
Allow and Deny can be used in apache conf F
Tags: IP address. htaccessThe code is as follows
Order Allow,deny
Allow from all
Deny from 125.64.2.46 182.237.3.102 58.215.169.18 114.80.132.9 121.14.48.5 66.249.67.182 94.180.84.186 58.243.40.76 89.123.61.113 116.23.60.197 110.75.172.81 60.215.129.75
Allow all, prohibit XXX, please change the inside of the IP to the IP address you want to ban.and save As. htaccess, upload to the site
Label: SQLSERVER2012 installed after the necessary security reinforcement, or very much DBA information can be read after the ordinary account login.--use [Master]--go--deny view SERVER state to [public]--go--use [master]--go--deny VIEW any DATABASE to [public]-- GO/********** Part sqlcopy need this permission cannot take off--use [master]--go--deny VIEW any DEFI
SQLSERVER2012 installed after the necessary security reinforcement, or many DBA information can be read after the ordinary account login.--use [Master]--go--deny View SERVER state to [public]--go--use] [Master]--go--deny View any DATABASE to [public]--go/***** Some sqlcopy need this permission not to take away--use [Master]--go--deny View any DEFINITION to [publi
the. htpasswd file, which is in the same location as our. htaccess file.
Require valid-user specifies that only valid users in the. htpasswd file can access the service.1.1.2. htpasswd Configuration
User name: Password
Aaa: aaa
Not necessarily in. the configuration in the htaccess file can also be found in httpd. conf (Master configuration) to improve the efficiency of apache. Otherwise, Apache will search for the client to access the Web in every directory. the htaccess file reduces Apache e
Comparison of new web development frameworks of Matt raible
Download PPT address: http://raibledesigns.com/page/rd? Entry = comparing_web_frameworks_presentation1
In the PPT, matt first used a group of photos to show his house, car, his happy family, and his books, to show his success as an independent consultant.
Next, we will show his development history
Struts: used since June 2001-same time 1.0 was released.Spring MVC: used since jenuary 2004-before 1.0 was released.Webwork: used since July
beginning. Because in front of, is dazzling, even the choice of language is confused. Where do you start?
Language:
Java, C #, PHP, Python or Ruby?
Java: Static language, perfect language features, rich enough.
C #: The Java-like language; The language features are equally well-developed, with excellent libraries.
Php/python/ruby: The same script language. In contrast to the static language, the most straightforward feeling is that after writing a line of code, I can see the effect in the brows
My blog hasn't been updated for a long time. I 've been busy with a new project recently. I 've tried a lot of new practices in this project, and I want to collect them and add them to my blog. Here I will first write an article about the Web framework, it is basically a repeat of the old call. this article was written in April to discuss issues with friends. It may be incorrect in some places.
Struts
JSF
Tapestry
ASP. NET
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.