EclipseEE最好配制环境,
- 编码格式,Window --> Preferences --> 搜【work】workSpace —更换utf-8;
- Window --> Preferences --> 搜【cont】content-type 点击text输入框手动输入utf-8;
- Window --> Preferences --> 搜【jsp】点击Jsp Files —更换utf-8;
- Window --> Preferences --> 搜【jre】点击installed jres —右面点击add —加入安装的jdk路径(注意不要选择jre,默认是jre的话将jdk加上以后选择jdk);
- Window --> Preferences --> 搜【code】java —code style —code templates —import导入模板位置;
- Window --> Preferences --> 搜【text】点击color and fonts —basic下面最后一个text font;
- Window --> Preferences --> 找【server】—Runtime Environments — add—tomcat的路径;
- Window --> Preferences --> 找【Validation】—Disabled All —
Apply应用,Yes —Ok,Yes 好了。 - Window --> Preferences --> 找【xml 】—XML Catalog —
Location: mybatis-3-mapper.dtd 【本资源库中有 .dtd文件】
Key: -//mybatis.org//DTD Mapper 3.0//EN
- 上传图片 –
server.xml<Context docBase="D:\img " path="/img" reloadable="true"/>