myeclipse

myeclipse创建hibernate工程

南楼画角 提交于 2020-02-09 17:04:46
1.创建数据库: from blog http://www.cnblogs.com/zhaocundang/p/9061959.html 使用navicat mysql IDE: 创建数据库 bookshop 创建表 CREATE TABLE books(id INT PRIMARY KEY auto_increment,Bookname VARCHAR(50),Bookprice VARCHAR(40)); ok 数据库部分整完。 打开myeclipse创建web工程: finish 创建数据库连接db browser 如果没有的话,在other查找db browser 右键new 填信息 测试连接 finish 展开数据库,右键数据库表book,反向工程 finish 右键工程导入hibernate库 取消勾 整个工程: 创建个测试类: 插入数据 package test; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import pojo.Book; public class mytest { static Configuration cfg

MyEclipse优化

泪湿孤枕 提交于 2020-02-09 16:38:55
1、去除不需要加载的模块 一个系统20%的功能往往能够满足80%的需求,MyEclipse也不例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止 加载启动。通过Windows - Preferences打开配置窗口,依次选择左侧的General - Startup and Shutdown,这个时候在右侧就显示出了Eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。 windows–>perferences–>general–>startup and shutdown 关掉没用的启动项: 怎样才能知道哪些启动项有用呢?我现在把我知道的启动项用处说一下,还有很多不懂的,希望大家懂的回复在下面啊: WTP :一个跟myeclipse差不多的东西,主要差别是 WTP 是免费的,如果使用myeclipse,这个可以取消 Mylyn:组队任务管理工具,类似于 CVS ,以任务为单位管理项目进度,没用到的可以取消 Derby:一种保存成 jar 形式的数据库,我没用到,取消 一大排以 MyEclipse EASIE 打头的启动项:myeclipse 支持的服务器,只选自己用的,其他取消,比如我只选了tomcat 2、取消MyEclipse在启动时自动验证项目配置文件 默认情况下MyEclipse在启动的时候会自动验证每个项目的配置文件

Myeclipse 优化

限于喜欢 提交于 2020-02-09 16:37:02
一、Myeclipse10修改字体 MyEclipse10是基于Eclipse3.7内核,但在Eclipse的Preferences-〉general-〉 Appearance->Colors and Fonts 中并没有找到Courier New字体,它采用的是Consolas字体,中文看着非常小非常别扭,在Windows7下,系统自带虽然有Courier New字体,但是并没有激活显示,需要手动激活,才能在软件中使用 激活方法如下: 在win7的控制面板->字体,找到Courier New,右键,显示。 Courier 常规 ,右键,显示。 window-->preferences-->搜索font-->Color and Font-->Basic-->Text Font-->Edit--> Courier New-->常规-->四号 二、myeclipse修改jsp、xml默认打开方式 window-->preferences-->General-->Editors-->File Associations-->选择File Type--> Associated editors选择默认的打开方式(Default) 三、Myeclipse修改编译兼容级别_Compiler compliance Level Window-->Preferences-->Java--

MyEclipse的使用

帅比萌擦擦* 提交于 2020-02-09 16:36:29
我在myeclipse中import以前的项目后,deploy(部署)项目。点击 deploy 按钮,在弹出的Project Deployments筐中看不到刚导入的项目,无法部署!为什么????请高手指点下啊 而我新建项目,deploy(部署)项目的时候可以看到项目 这是因为以前的项目不是用myEclipse创建的,所以用myeclipse deploy的时候找不到你的项目。 可以这样做:右击原项目名 - myeclipse - Add Web Capilities... 这样就可以用myEclipse做deployment了。 在myeclipse中点击 deploy 旋钮,在弹出的Project Deployments筐中看不到刚导入的项目,无法部署   在以前的eclipse或者maven转成eclipse的项目的时候,导入myeclipse中,点击部署找不到项目。   解决办法:右键点击项目名称->myeclipse->Add Web Project Capilities...,这样就可以deployment了。 添加自动提示功能 Eclipse/MyEclipse编辑器会在输入 . 后会提示一些变量或者属性方法等。但是在Implements实现或者继承的时候则无能为力。要想实现完整的提示功能,也就是提示范围包含:一切可能的输入变量、方法或接口列表,则需要对配置进行完善

MyEclipse下Spring+Hibernate整合

本小妞迷上赌 提交于 2020-02-08 20:54:03
目前,SSH(Struts+Spring+Hibernate)是Web开发的一种常用框架组合,Struts实现了MVC,Hibernate实现了关系对象映射,Spring实现了基于Bean的配置管理。本文使用 MyEclipse实现Spring+Hibernate的整合。 软件和框架使用版本: MyEclipse:8.0 Spring:2.5 Hibernate:3.2 MySQL:5.1 创建数据库连接 首先在MyEclipse下切换Perspective至MyEclipse Database Explorer,在左侧DB Browser中右键点击,在对话框中选择“New”,创建数据库连接MySQL。数据库连接的配置如图1所示,需要填写URL、用户名、密码、驱动等信息。 数据库连接配置成功后,左侧DB Browser中会显示该连接,右键点击该连接,在对话框中选择“Open connection”,显示数据库中的详细信息,如图2所示。在数据库中已有一user表,在下面将使用Spring+Hibernate实现对该表的操作。 新建Web工程,并配置Spring 切换Perspective至MyEclipse Java Enterprise,新建Web工程ssh,如图3所示。如果在随后的工作中还需整合Struts 2,则J2EE Specification Level应选择Java

MyEclipse: pin folders to project/package explorer

人走茶凉 提交于 2020-02-07 12:51:14
问题 I am developing a web application in eclipse, which has a very large folder structure. However, most of the work is done in 4-5 folders. Is there a way to pin those folders, so that they are easily accessible (like the favorites in windows file explorer). Alternatively (even better), is there a way to create a custom view so that only desired folders are visible?? 回答1: You can use Resource Tagger plugin for this. Also look at Resource decorator plugin and filter the resources. 回答2: A custom

MyEclipse: pin folders to project/package explorer

倾然丶 夕夏残阳落幕 提交于 2020-02-07 12:51:09
问题 I am developing a web application in eclipse, which has a very large folder structure. However, most of the work is done in 4-5 folders. Is there a way to pin those folders, so that they are easily accessible (like the favorites in windows file explorer). Alternatively (even better), is there a way to create a custom view so that only desired folders are visible?? 回答1: You can use Resource Tagger plugin for this. Also look at Resource decorator plugin and filter the resources. 回答2: A custom

MyEclipse: pin folders to project/package explorer

馋奶兔 提交于 2020-02-07 12:50:05
问题 I am developing a web application in eclipse, which has a very large folder structure. However, most of the work is done in 4-5 folders. Is there a way to pin those folders, so that they are easily accessible (like the favorites in windows file explorer). Alternatively (even better), is there a way to create a custom view so that only desired folders are visible?? 回答1: You can use Resource Tagger plugin for this. Also look at Resource decorator plugin and filter the resources. 回答2: A custom

Cannot return from outside a function or method onClick="return check();"出现错误等等

牧云@^-^@ 提交于 2020-02-04 13:13:25
Cannot return from outside a function or method onClick="return check();"出现错误等等 最近发现myeclipse10中有几处bug比如: Cannot return from outside a function or method onClick="return check();"出现错误等等 解决方法: 方法一:window -->preferences -->myeclipse -->validation -->javascript validator for Js files 把Bulid 复选框的勾去掉 就行了 如下图所示: 方法二: 在所建立的工程项目中右键单击,找到myeclipse-->Exclude Form Validation单击一下,打上√号,即可看到奇迹出现哦,js的错误已经没了! 图例如下: 来源: CSDN 作者: zhupengqq1 链接: https://blog.csdn.net/zhupengqq1/article/details/104167746

安装myeclipse

无人久伴 提交于 2020-02-01 20:11:57
(1)打开安装包后,一直点击下一步 (2)修改 安装路径 ,之后一直点击“Next” (3)选择 操作系统 ,之后点击“ Next” PS:查看自己电脑的操作系统,右键计算机--->属性(如选图所示) (4)耐心等待安装 (5)点击“ Finish ”,安装完毕 来源: CSDN 作者: super_DuoLa 链接: https://blog.csdn.net/super_DuoLa/article/details/104134283