1. 首页 > 文章分类 > 生活百态

myeclipse8.0下载(svn插件安装)

今天给各位分享myeclipse8.0下载的知识,其中也会对svn插件安装进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录

  1. myeclipse8***svn插件安装
  2. myeclipse8.0里面怎么整合struts2与spring2.5
  3. 如何在eclipse中安装svn插件并使用方法

一、myeclipse8***svn插件安装

javaeye上有详细说明,你看看怎么样

help->Software Updates->find and install(如果没有这个就用help->Software Updates->Add/Remove Software即可)

选择search for new features to install, Next

输入name:subclipse,url:,点OK

在弹出框中选择subclipse,把Subclipse Integration for Mylyn 3.x去掉,

一.共享项目(把本地的项目共享到subversion服务器上)

打开MyEclipse8.0,假设要共享projTest是项目名称

右键项目projTest->Team->Share Project->Svn,

单库模式下url填写svn://svnserveraddress/,多库模式下url填写svn://svnserveraddress/Repository1,其中Repository1是库的名称

next直到finish,proj1就被共享到svn服务器上了,但是代码并没上传,还需要commit一次

右键项目projTest,team->commit,项目内容就被上传到svn服务器了

二.签出项目(把svn服务器上的项目下载的到本地)

window->open perspective->svn repository explorer(如果没有在other里选择)

在左边空白处右键->new->repository location

单库模式下url填写svn://svnserveraddress/,多库模式下url填写svn://svnserveraddress/Repository1(同步骤二)

next直到finish,该项目就被签出到本地,切换到java视图就能看到该项目了

网上又找到一个方法,你试试行不行,不行我再去找

将其解压缩放在D盘my,即D:\myplugins目录下,即形成了D:\myplugins\features\;D:\myplugins\plugins;D:\myplugins\site.xml等。

我在Genuitec\MyEclipse 8.x Latest\dropins\目录下建立了一个文件svn.link.

里面的内容有path=D:\\myplugins

这个时候重新启动myeclipse会出错,插件安装不成功。

但是当我把d:\myplugins文件夹下的artifacts.xml,content.xml,site.xml 3个文件删掉。

二、myeclipse8.0里面怎么整合struts2与spring2.5

这个整合和myeclipse版本没什么关系

struts2-spring-plugin-2.0.8.jar

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns=""

xmlns:xsi=""

xsi:schemaLocation="

">

<welcome-file>index.jsp</welcome-file>

<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

<param-name>contextConfigLocation</param-name>

<param-value>WEB-INF/applicationContext.xml</param-value>

<filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>

<filter-name>struts2</filter-name>

<url-pattern>/*</url-pattern>

--------------------------------------------------------------------------------

#struts.custom.i18n.resources=tutorial.ApplicationMessages

##struts.multipart.saveDir=/temp

struts.configuration.xml.reload=true

##struts.action.extension=action

<?xml version="1.0" encoding="UTF-8"?>

"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

"">

<!--让spring负责产生bean-->

<constant name="objectFactory" value="spring"/>

<include file="logon.xml"/>

--------------------------------------------------------------------------------

这个namespace有一个规则,还是写成默认 namespace="/"的好或者不写

namespace="/" URL为

namespace="/logon" URL为

<result>/jsp/logon/input.jsp</result>

开头带"/"表示相对于根目录否则相对于namespace目录(这个没试过)

<action name="Logon!*" method="{1}" class="logonAction">中"*"代表action中对应方法

<?xml version="1.0" encoding="UTF-8"?>

"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

"">

<package name="logon" extends="struts-default" namespace="/">

<!--处理404错误页面等-->

<default-action-ref name="UnderConstruction"/>

<action name="UnderConstruction"><result>/404.jsp</result></action>

<!--<action name="*"><result>/{1}.jsp</result></action>-->

<result>/jsp/logon/input.jsp</result>

<action name="Logon!*" method="{1}" class="logonAction">

<result>/jsp/logon/success.jsp</result>

<result name="input">/jsp/logon/input.jsp</result>

<!-- Add your actions here-->

--------------------------------------------------------------------------------

XML语言: aaa<?xml version="1.0" encoding="UTF-8"?>

xmlns=""

xmlns:xsi=""

xsi:schemaLocation="

">

<bean id="config" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

<property name="locations">

<list><value>classpath:jdbc.properties</value></list>

<bean name="logonAction" class="struts.action.logon.LogonAction" scope="prototype">

<property name="service" ref="logonService"/>

<bean id="logonService" class="struts.service.logon.LogonService"></bean>

--------------------------------------------------------------------------------

struts配置文件中的红色背景部分的class和applicationContext.xml中bean的name或者id对应

此处applicationContext.xml的bean如果不写scope="prototype"登录出错以后,不能再正确登录,原因是spring缓存了这个bean

<%@ page language="java" pageEncoding="UTF-8"

%><%@ taglib prefix="s" uri="/struts-tags"

<head><title></title></head>

<s:if test="hasErrors()">

<form method='post' action='Logon!logon.action' name='' target=''>

<input type='text' id='username' name='username' value='username'>

<input type='text' id='password' name='password' value='password'>

<input type='submit'>

--------------------------------------------------------------------------------

struts.action.logon.LogonAction.java

import struts.service.logon.LogonService;

import com.opensymphony.xwork2.ActionSupport;

public class LogonAction extends ActionSupport{

private static final long serialVersionUID= 1L;

public String logon() throws Exception{

System.out.println("user:"+getUsername()+" password:"+getPassword());

if(isInvalid(getUsername())){

this.addActionError("用户名为空!");

if(isInvalid(getPassword())){

this.addActionError("密码为空!");

if(getService().logon(getUsername(),getPassword())){

this.addActionError("用户名或密码错误!");

private boolean isInvalid(String value){

return(value== null|| value.length()== 0);

private LogonService service;

--------------------------------------------------------------------------------

struts.service.logon.LogonService.java

public boolean logon(String username,String password){

if("admin".equals(username)&&"admin".equals(password))return true;

--------------------------------------------------------------------------------

浏览器访问

用户名密码不是admin提示"用户名或密码错误!"

三、如何在eclipse中安装svn插件并使用方法

1需要安装eclipse,设置相关的环境变量,安装jdk等。

2安装之后,打开eclipse,点击“帮助”,选择“安装新软件”。

3在弹出的安装页面,点击“添加”,在添加页面填写

名称: Subclipse 1.6.x,点击“确定”。

4对应的列表中会显示相应的资源,勾选所有的资源。

5在勾选完成之后,点击“下一步”,进行资源信息的在线检查。

6进入到在线检查的页面,整一个页面是不能**作的(安装插件需要联网)

7检测到插件信息之后,点击“下一步”。

8进入到“许可”页面,选择“同意.....”选项。点击“下一步”。

9之后,进入到下载以及安装的页面。可以通过点击“在后台运行”。实现后台安装,不影响其它的操作、

10在安装完成之后,会出现警告提醒,点击“确定”即可。

11再次点击“窗口”菜单,选择“首先项”。

12在“小组”(英文中是Team)中会看到SVN的选项,即表示安装已成功。

OK,关于myeclipse8.0下载和svn插件安装的内容到此结束了,希望对大家有所帮助。

本文来源于互联网,不代表趣虎号立场,转载联系作者并注明出处:https://www.quhuhao.com/wzfl/73635.html

联系我们

在线咨询:点击这里给我发消息

微信号:

工作日:9:30-18:30,节假日休息