Maven这个个项目管理和构建自动化工具,越来越多的开发人员使用它来管理项目中的jar包。本文仅对Eclipse中如何安装、配置和使用Maven进行了介绍。完全step by step。

如果觉得本文对你有用,请移步到:http://download.csdn.net/detail/qjyong/5582071 下载PDF版,
http://download.csdn.net/detail/qjyong/5582087 下载配套示例项目源代码。

1.   Eclipse-jee的安装

进入eclipse官网的下载页面:http://www.eclipse.org/downloads/,如下图所示:

根据你的操作系统具体情况选择相应的版本。我这里选择的是“Eclipse IDE for JavaEE
Developers”的Windows 32
Bit版本。下载到本地磁盘即可。把下载完成的“eclipse-jee-juno-SR2-win32.zip”解压缩到本地磁盘指定目录下。我这里是
解压缩在D:盘根目录下。

进入解压缩后的目录中,双击“eclipse.exe”即可打开Eclipse的工作界面。(注:Eclipse正常运行的前提是在系统变量中存在名为“JAVA_HOME”的变量,值为JDK的安装目录)。

2.   Maven的安装和配置

2.1.  安装

进入Maven官网的下载页面:http://maven.apache.org/download.cgi,如下图所示:

选择当前最新版本:“apache-maven-3.0.4-bin.zip”,下载到本地,解压缩到本地磁盘D:下。

2.2.  配置

进入Maven安装目录下的conf子目录中,打开settings.xml进行配置修改。

2.2.1.   修改默认的本地仓库位置

Maven默认的本地仓库位置是当前用户工作目录下的“.m2/repository”,使用过程中这个目录里的文件会比较多,占用空间越来越大。
一般建议更换到其它磁盘目录下。如下配置,就把默认的本地仓库更改到D: /.m2/repository这个目录(这个目录结构需要自己创建好)。

<localRepository>d:/.m2/repository</localRepository>

2.2.2.   修改默认的中央仓库镜像

Maven默认的中央仓库里的文件不全。所以,都需要自行添加其它的镜像地址。在settings.xml文件中的“<mirrors>”标签里添加如下内容:

<mirror>

<id>ibiblio</id>

<mirrorOf>central</mirrorOf>

<name>Human Readable Name for this Mirror.</name>

<url>http://mirrors.ibiblio.org/maven2/</url>

</mirror>

保存所做的修改,同时还需要把这个settings.xml文件复制一份到“D:/.m2”目录下。

3.   Eclipse中m2eclipse插件的安装

Eclipse默认不支持Maven。需要给它添加m2eclipse插件。下面是具体的操作步骤。

3.1.  插件安装

依次选择Eclipse菜单栏的“Help”菜单à“Instance NewSoftWare”菜单项,就会弹出如下对话窗口:

选择“Add..”按钮,又会弹出如下对话框:

这个对话框就是用于添加一个插件地址的。在“Name”对应的输入框里输入该操作的一个标识名。在“Location”对应的输入框里输入这个插件的安装地址。注:Maven的Eclipse插件地址为:http://download.eclipse.org/technology/m2e/releases。(或:http://m2eclipse.sonatype.org/sites/m2e)输入后,如下图所示:

输入完成后,点击右下角的“OK”按钮,就会弹出如下对话框:

这里需要选择想要安装的插件的详细内容。选中“Maven Integration for Eclipse”前面的复选框。如下图所示:

选择完成后,点击右下方的“Next>”按钮进行安装。安装成功后,会提示需要重启Eclipse来生效这次配置。重启之后,这个Eclipse就可以使用m2eclipse插件功能了。

3.2.  配置

插件安装好之后,还需要进行一些配置才能够开始使用Maven的功能。

3.2.1.   设置m2eclipse插件所关联的Maven程序

依次选择Eclipse菜单栏的“Window”à“Preferences”菜单项,就会弹出如下对话框:

在这个对话框左边的导航栏中展开“Maven”目录结点,并选择“Installations”子节点,如下图所示:

这里需要关联上对应的Maven安装程序。具体操作是,在右边面板中选择“Add…”按钮,会弹出如下选择Maven安装目录的选择对话框:

通过这个对话框来选择Maven的具体安装目录。选择好之后就点击“确定”按钮。如下图所示:

3.2.2.   设置自定义的本地仓库

选择如上图对话窗口左边菜单树 “Maven”节点下的“UserSettings”子节点,它默认的配置文件是“C:\Documents and Settings\csdn\.m2\settings.xml”,如下图所示:

这边需要修改为我们自定义仓库位置下的settings.xml文件。具体操作是,点击“Browse…”按钮来选择上一步骤修改的本地仓库目录下的settings.xml文件,如下图所示:

在上图中选择D:/.m2目录下的“settings.xml”文件,点击“打开”按钮来确认刚才的选择,就会回到如下图的对话窗口中:

在上图中点击右下角的“OK”按钮来完成所有的配置修改。

4.   使用Maven来构建Web项目

4.1.  创建Maven的web项目

m2eclispe插件中默认提供了一些Maven样板项目,可以使用这些样板来创建符合我们要求的项目。具体操作如下步骤:

在eclipse菜单栏中选择“File”à“News”à“Other”菜单项,就会打开如下对话窗口,在窗口中选择“Maven”节点下“Maven Project”条目,如下图所示:

点击“Next>”按钮,进入如下窗口:

再次选择“Next >”按钮,进入如下窗口:

在这个窗口中选择“maven-archetype-webapp”来创建一个Maven的web项目,再选择“Next>”按钮,进入如下图窗口:

在上图窗口的“Group Id”中输入项目的基本包名,在“Artifact Id”中输入项目名,其它输入框不用理会。点击“Finish”按钮来完成项目的整个创建过程。

之后,Maven就会根据项目的配置去中央仓库下载相应的文件和jar包。完成后,就有如下项目目录结构:

如上图所示,“pom.xml”文件就是这个项目的maven配置文件。打开此文件,并在“<build>”标签内添加如下配置:

<defaultGoal>install</defaultGoal>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<configuration>

<skip>true</skip>

</configuration>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<version>2.5.1</version>

<configuration>

<source>1.6</source>

<target>1.6</target>

<encoding>UTF-8</encoding>

</configuration>

</plugin>

</plugins>

这段配置中“<defaultGoal>”标签指定maven的默认操作是“install”;“maven-surefire-
plugin”插件配置了“忽略编译项目时的测试运行”;“maven-compiler-plugin”插件指定了一些编译时的信息配置。

4.2.  使用Maven添加项目依赖包

Java Web项目中还需要添加ServletAPI、JSP API以及JSTL的jar包,这可以直接在pom.xml文件中添加了。如下pom.xml文件中就添加了Servlet-API 2.5版本、JSP-API2.1版本、JSTL 1.2版本:

<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>com.qiujy</groupId>

<artifactId>testweb_svn</artifactId>

<packaging>war</packaging>

<version>0.0.1-SNAPSHOT</version>

<name>testweb_svn Maven Webapp</name>

<url>http://maven.apache.org</url>

<dependencies>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>servlet-api</artifactId>

<version>2.5</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>javax.servlet.jsp</groupId>

<artifactId>jsp-api</artifactId>

<version>2.1</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>jstl</artifactId>

<version>1.2</version>

</dependency>

</dependencies>

<build>

<finalName>testweb_svn</finalName>

<defaultGoal>install</defaultGoal>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-plugin</artifactId>

<configuration>

<skip>true</skip>

</configuration>

</plugin>

</plugins>

</build>

</project>

这里说明一下:对Servlet和JSP的API包,在编译web项目时需要使用,而把web项目打包部署到web容器(如Tomcat)中运行时就不需要了。因此,这里把它们的<scope>配置为provided。

4.3.  把Maven项目转换成Eclipse工程

为了便于在Eclipse中开发JavaWeb项目,我们需要把Maven项目的目录结构转换成Eclipse工程的目录结构,具体按如下操作步骤进行。

选中项目在右键菜单中选择“Properties”,弹出如下图所示对话窗口:

选中左边功能树中的“ProjectFacets”节点,然后在对应的右边面板中点击“Convert to faceted from…”这个超链接,右边面板就会切换成如下图所示:

在“Project Facet”中进行相应配置,如下图所示:

配置好之后,选择窗口右下角的“OK”按钮来保存配置。这时,这个Maven项目就会转换成Eclipse的web工程目录结构。

如果还需要直接在Eclipse中运行这个web工程,还需要把Maven依赖包添加到本项目类路径中:

还需要添加部署到Tomcat时的依赖包,如下图:

点击“Finish”来完成后,对话框如下图所示:

之后点击“OK”按钮来完成这些设置。

4.4.  把web.xml修改成相应版本

由于Maven中的“maven-archetype-webapp”样板项目的“web.xml”是2.3版本的,我们需要替换成新版本:可以把
Eclipse的web工程webContent/WEB-INF目录下的“web.xml”文件复制替换掉“src/main/webapp/WEB-
INF/”目录下的web.xml文件。

注意:由于Maven项目编译和发布时,它只是把“src”目录下的资源压缩到一个war包中。而使用Eclipse-JEE开发web项目时,都
是把页面资源(html/css/js/img/JSP)放置在WebContent目录下。所以,在使用Maven来编译和发布项目前,需要把
WebContent目录下的资源复制到“src/main/webapp/”目录下。

5.   使用Maven编译和发布项目

在项目中的“pom.xml”文件上点击右键,在弹出的菜单中选择“Run AS”à“Maveninstall”来编译和生成项目。如下图所示:

在编译和生成过程中,可以在“Console”面板中可以看到Maven编译过程的信息,如果编译和生成成功,可以在“Console”面板看到“BUILD SUCCESS”字样。

另外,在修改pom.xml文件中的相关jar包信息时,可能由于仓库中不存在,就会出现一些错误,这时,项目编译就可能存在一些问题。此时可通过
“Maven clean”选项来清除编译,然后再修改pom.xml到正确情况。再通过“Maven install”来编译和生成。

6.   示例项目代码

7.   附文件

如下是一个SpringMVC3+Spring3+Hibernate4的web项目中的pom.xml文件:

  1. <projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.  
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4.  
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>com.qiujy</groupId>
  8.  
  9. <artifactId>site2013</artifactId>
  10.  
  11. <packaging>war</packaging>
  12.  
  13. <version>0.0.1-SNAPSHOT</version>
  14.  
  15. <name>site2013 Maven Webapp</name>
  16.  
  17. <url>http://maven.apache.org</url>
  18.  
  19. <properties>
  20.  
  21. <spring.version>3.2.3.RELEASE</spring.version>
  22.  
  23. <hibernate.version>4.2.2.Final</hibernate.version>
  24.  
  25. <slf4j.version>1.7.5</slf4j.version>
  26.  
  27. <jackson.version>2.2.2</jackson.version>
  28.  
  29. </properties>
  30.  
  31. <dependencies>
  32.  
  33. <!-- servlet/jsp api -->
  34.  
  35. <dependency>
  36.  
  37. <groupId>javax.servlet</groupId>
  38.  
  39. <artifactId>servlet-api</artifactId>
  40.  
  41. <version>2.5</version>
  42.  
  43. <scope>provided</scope>
  44.  
  45. </dependency>
  46.  
  47. <dependency>
  48.  
  49. <groupId>javax.servlet.jsp</groupId>
  50.  
  51. <artifactId>jsp-api</artifactId>
  52.  
  53. <version>2.1</version>
  54.  
  55. <scope>provided</scope>
  56.  
  57. </dependency>
  58.  
  59. <!-- jstl -->
  60.  
  61. <dependency>
  62.  
  63. <groupId>javax.servlet</groupId>
  64.  
  65. <artifactId>jstl</artifactId>
  66.  
  67. <version>1.2</version>
  68.  
  69. </dependency>
  70.  
  71. <!-- javaxmail
  72.  
  73. <dependency>
  74.  
  75. <groupId>javax.mail</groupId>
  76.  
  77. <artifactId>mail</artifactId>
  78.  
  79. <version>1.4.5</version>
  80.  
  81. </dependency>-->
  82.  
  83. <!-- slf4j -->
  84.  
  85. <dependency>
  86.  
  87. <groupId>org.slf4j</groupId>
  88.  
  89. <artifactId>slf4j-log4j12</artifactId>
  90.  
  91. <version>${slf4j.version}</version>
  92.  
  93. </dependency>
  94.  
  95. <!-- junit -->
  96.  
  97. <dependency>
  98.  
  99. <groupId>junit</groupId>
  100.  
  101. <artifactId>junit</artifactId>
  102.  
  103. <version>4.8.2</version>
  104.  
  105. </dependency>
  106.  
  107. <!-- proxool <dependency> <groupId>proxool</groupId> <artifactId>proxool</artifactId>
  108.  
  109. <version>0.8.3</version> </dependency> -->
  110.  
  111. <!-- mysql driver -->
  112.  
  113. <dependency>
  114.  
  115. <groupId>mysql</groupId>
  116.  
  117. <artifactId>mysql-connector-java</artifactId>
  118.  
  119. <version>5.1.22</version>
  120.  
  121. </dependency>
  122.  
  123. <!-- sql server数据库驱动 <dependency> <groupId>net.sourceforge.jtds</groupId>
  124.  
  125. <artifactId>jtds</artifactId> <version>1.3.0</version> </dependency> -->
  126.  
  127. <!-- oracle数据库驱动:maven仓库中的ojdbc下载需要oracle的官方授权,先在网上找一个ojdbc14.jar包,上传到本地的maven仓库
  128.  
  129. mvn install:install-file -Dfile=D:/resources/ojdbc/ojdbc14.jar -DgroupId=com.oracle
  130.  
  131. -DartifactId=ojdbc14 -Dversion=10.2.0.1.0 -Dpackaging=jar <dependency> <groupId>com.oracle</groupId>
  132.  
  133. <artifactId>ojdbc14</artifactId> <version>10.2.0.4.0</version> </dependency> -->
  134.  
  135. <!-- fileupload -->
  136.  
  137. <dependency>
  138.  
  139. <groupId>commons-fileupload</groupId>
  140.  
  141. <artifactId>commons-fileupload</artifactId>
  142.  
  143. <version>1.2.2</version>
  144.  
  145. </dependency>
  146.  
  147. <!-- io -->
  148.  
  149. <dependency>
  150.  
  151. <groupId>commons-io</groupId>
  152.  
  153. <artifactId>commons-io</artifactId>
  154.  
  155. <version>2.4</version>
  156.  
  157. </dependency>
  158.  
  159. <!-- c3p0 -->
  160.  
  161. <dependency>
  162.  
  163. <groupId>c3p0</groupId>
  164.  
  165. <artifactId>c3p0</artifactId>
  166.  
  167. <version>0.9.1.2</version>
  168.  
  169. </dependency>
  170.  
  171. <!-- struts2 <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId>
  172.  
  173. <version>${struts.version}</version> <exclusions> <exclusion> <artifactId>javassist</artifactId>
  174.  
  175. <groupId>javassist</groupId> </exclusion> </exclusions> </dependency> <dependency>
  176.  
  177. <groupId>org.apache.struts</groupId> <artifactId>struts2-spring-plugin</artifactId>
  178.  
  179. <version>${struts.version}</version> <exclusions> <exclusion> <artifactId>spring-core</artifactId>
  180.  
  181. <groupId>org.springframework</groupId> </exclusion> </exclusions> </dependency> -->
  182.  
  183. <!-- spring3 -->
  184.  
  185. <dependency>
  186.  
  187. <groupId>org.springframework</groupId>
  188.  
  189. <artifactId>spring-beans</artifactId>
  190.  
  191. <version>${spring.version}</version>
  192.  
  193. </dependency>
  194.  
  195. <dependency>
  196.  
  197. <groupId>org.springframework</groupId>
  198.  
  199. <artifactId>spring-context</artifactId>
  200.  
  201. <version>${spring.version}</version>
  202.  
  203. </dependency>
  204.  
  205. <!-- spring需要的aspectj依赖包 -->
  206.  
  207. <dependency>
  208.  
  209. <groupId>org.aspectj</groupId>
  210.  
  211. <artifactId>aspectjweaver</artifactId>
  212.  
  213. <version>1.7.2</version>
  214.  
  215. </dependency>
  216.  
  217. <dependency>
  218.  
  219. <groupId>org.springframework</groupId>
  220.  
  221. <artifactId>spring-tx</artifactId>
  222.  
  223. <version>${spring.version}</version>
  224.  
  225. </dependency>
  226.  
  227. <dependency>
  228.  
  229. <groupId>org.springframework</groupId>
  230.  
  231. <artifactId>spring-jdbc</artifactId>
  232.  
  233. <version>${spring.version}</version>
  234.  
  235. </dependency>
  236.  
  237. <dependency>
  238.  
  239. <groupId>org.springframework</groupId>
  240.  
  241. <artifactId>spring-orm</artifactId>
  242.  
  243. <version>${spring.version}</version>
  244.  
  245. </dependency>
  246.  
  247. <dependency>
  248.  
  249. <groupId>org.springframework</groupId>
  250.  
  251. <artifactId>spring-context-support</artifactId>
  252.  
  253. <version>${spring.version}</version>
  254.  
  255. </dependency>
  256.  
  257. <!-- spring web -->
  258.  
  259. <dependency>
  260.  
  261. <groupId>org.springframework</groupId>
  262.  
  263. <artifactId>spring-web</artifactId>
  264.  
  265. <version>${spring.version}</version>
  266.  
  267. </dependency>
  268.  
  269. <!-- spring mvc -->
  270.  
  271. <dependency>
  272.  
  273. <groupId>org.springframework</groupId>
  274.  
  275. <artifactId>spring-webmvc</artifactId>
  276.  
  277. <version>${spring.version}</version>
  278.  
  279. </dependency>
  280.  
  281. <!-- <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId>
  282.  
  283. <version>2.1.6</version> </dependency> -->
  284.  
  285. <!-- hibernate4 -->
  286.  
  287. <dependency>
  288.  
  289. <groupId>org.hibernate</groupId>
  290.  
  291. <artifactId>hibernate-core</artifactId>
  292.  
  293. <version>${hibernate.version}</version>
  294.  
  295. <exclusions>
  296.  
  297. <exclusion>
  298.  
  299. <groupId>org.slf4j</groupId>
  300.  
  301. <artifactId>slf4j-api</artifactId>
  302.  
  303. </exclusion>
  304.  
  305. </exclusions>
  306.  
  307. </dependency>
  308.  
  309. <dependency>
  310.  
  311. <groupId>org.hibernate</groupId>
  312.  
  313. <artifactId>hibernate-ehcache</artifactId>
  314.  
  315. <version>${hibernate.version}</version>
  316.  
  317. </dependency>
  318.  
  319. <dependency>
  320.  
  321. <groupId>com.fasterxml.jackson.core</groupId>
  322.  
  323. <artifactId>jackson-databind</artifactId>
  324.  
  325. <version>${jackson.version}</version>
  326.  
  327. </dependency>
  328.  
  329. </dependencies>
  330.  
  331. <!-- ========================================================== -->
  332.  
  333. <build>
  334.  
  335. <finalName>site2013</finalName>
  336.  
  337. <defaultGoal>install</defaultGoal>
  338.  
  339. <plugins>
  340.  
  341. <plugin>
  342.  
  343. <groupId>org.apache.maven.plugins</groupId>
  344.  
  345. <artifactId>maven-surefire-plugin</artifactId>
  346.  
  347. <configuration>
  348.  
  349. <skip>true</skip>
  350.  
  351. </configuration>
  352.  
  353. </plugin>
  354.  
  355. <plugin>
  356.  
  357. <groupId>org.apache.maven.plugins</groupId>
  358.  
  359. <artifactId>maven-compiler-plugin</artifactId>
  360.  
  361. <version>2.5.1</version>
  362.  
  363. <configuration>
  364.  
  365. <source>1.6</source>
  366.  
  367. <target>1.6</target>
  368.  
  369. <encoding>UTF-8</encoding>
  370.  
  371. </configuration>
  372.  
  373. </plugin>
  374.  
  375. </plugins>
  376.  
  377. </build>
  378.  
  379. </project>

使用Eclipse构建Maven项目 (step-by-step) (转收藏)的更多相关文章

  1. Eclipse构建Maven项目

    1. 安装m2eclipse插件     要用Eclipse构建Maven项目,我们需要先安装meeclipse插件     点击eclipse菜单栏Help->Eclipse Marketpl ...

  2. Maven实战(三)Eclipse构建Maven项目

    1. 安装m2eclipse插件    要用Eclipse构建Maven项目,我们需要先安装meeclipse插件    点击eclipse菜单栏Help->Eclipse Marketplac ...

  3. (转)Maven实战(三)Eclipse构建Maven项目

    1. 安装m2eclipse插件    要用Eclipse构建Maven项目,我们需要先安装meeclipse插件    点击eclipse菜单栏Help->Eclipse Marketplac ...

  4. maven入门(1-4)使用eclipse构建maven项目

    1. 安装m2eclipse插件    要用Eclipse构建Maven项目,我们需要先安装meeclipse插件    点击eclipse菜单栏Help->Eclipse Marketplac ...

  5. 使用eclipse构建Maven项目及发布一个Maven项目

    开发环境: Eclipse Jee Mars(截止2015年12月1日目前的最新版eclipse4.5),下载地址:http://www.eclipse.org/downloads/ 因为此版本已经集 ...

  6. maven 学习---Eclipse构建Maven项目

    1. 安装m2eclipse插件    要用Eclipse构建Maven项目,我们需要先安装meeclipse插件    点击eclipse菜单栏Help->Eclipse Marketplac ...

  7. maven - Eclipse构建maven项目

    前面的博文已经介绍了如何安装maven,本文将记录如何在Eclipse下构建maven项目. 一.Eclipse maven插件安装 关于安装Eclipse maven插件,网上有很多方法,这里推荐一 ...

  8. 【转】使用Eclipse构建Maven项目 (step-by-step)

    安装eclipse 及配置maven时,参考的资料!!! from:http://blog.csdn.net/qjyong/article/details/9098213 Maven这个个项目管理和构 ...

  9. 使用Eclipse构建Maven项目 (step-by-step)

    Maven这个个项目管理和构建自动化工具,越来越多的开发人员使用它来管理项目中的jar包.本文仅对Eclipse中如何安装.配置和使用Maven进行了介绍.完全step by step. 如果觉得本文 ...

  10. 使用Eclipse构建Maven项目 (转)

    Maven这个个项目管理和构建自动化工具,越来越多的开发人员使用它来管理项目中的jar包.本文仅对Eclipse中如何安装.配置和使用Maven进行了介绍.完全step by step. 如果觉得本文 ...

随机推荐

  1. Loj10086 Easy SSSP

      试题描述 输入数据给出一个有 N 个节点,M 条边的带权有向图.要求你写一个程序,判断这个有向图中是否存在负权回路.如果从一个点沿着某条路径出发,又回到了自己,而且所经过的边上的权和小于 0,就说 ...

  2. linux基础命令学习(六)文件的特殊属性

    Linux chattr命令用于改变文件属性. 这项指令可改变存放在ext2文件系统上的文件或目录属性,这些属性共有以下8种模式: a:让文件或目录仅供附加用途.    b:不更新文件或目录的最后存取 ...

  3. CentOS 6.9通过RPM安装EPEL源(http://dl.fedoraproject.org)

    另类的装法,通过RPM包直接安装 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm & ...

  4. Added components improve switching-regulator stability

    Added components improve switching-regulator stability

  5. Spring EL方法调用实例

    Spring表达式语言(使用SpEL)允许开发人员使用表达式来执行方法和将返回值以注入的方式到属性,或叫作“使用SpEL方法调用”. Spring EL在注解的形式 了解如何实现Spring EL方法 ...

  6. PHP session过期机制和配置

    问题:使用PHP session时会遇到明明超过了session过期时间,但session依然完好无损的活着,让人头大. 其实仔细看一下php.ini关于PHP session回收机制就一目了然了. ...

  7. 关于目前自己iOS项目使用的插件

    1. VVDocumenter-Xcode 规范注释生成器. 2. RTImageAssets 本项目是一个 Xcode 插件,用来生成 @3x 的图片资源对应的 @2x 和 @1x 版本,只要拖拽高 ...

  8. 第十一章 PhpMyAdmin连接远程mysql服务器---连接openwrt 703N服务器

    //千万不要在你原来的那个phpmyadmin文件夹上操作~~~要复制一个新的进行操作,这样我们就可以同时使用本地和远程   一.下载phpmyadmin到本地 我使用的是windows下的集成WAM ...

  9. 第八章openwrt 703N使用HUB(集线器)插U盘等设备

    在这里就要吐槽一下了,在网上一搜索竟然没有一篇详细的关于703N使用hub后挂载u盘的文章,想了很久问了别人还弄了一天晚上终于弄好了.好吧下面开始言归正传: 1.其实一般质量可以的集线器例如SSK这类 ...

  10. 描述 Machine.Config 和 Web.Config(转载)

    NET Framework 提供的配置管理包括范围广泛的设置,允许管理员管理 Web 应用程序及其环境.这些设置存储在 XML 配置文件中,其中一些控制计算机范围的设置,另一些控制应用程序特定的配置. ...