![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA EE
小菜希
这个作者很懒,什么都没留下…
展开
-
Struts2常量介绍及说明
转自 http://blog.csdn.net/redarmy_chen/article/details/7342155Struts2常量介绍 10级学员 刘根鹏课堂笔记 经过前几讲的介绍,我想大家对struts2有了初步的了解,下面让我来讲讲struts2中常量的用法和使用(常量的默认配置struts2-core-2.x.x.x/org/apache/struts2/default.pr转载 2016-06-26 19:08:50 · 947 阅读 · 0 评论 -
Struts2之HelloWorld环境搭建
版本 1、struts版本:struts-2.3.24.1 2、开发工具:Eclispe EE 3、jdk1.8 4、Tomcat8 5、编码:utf-8环境搭建1、新建 Dynamic Web Project项目 strutsdemo1 2、用winrar解压 struts-2.3.24.1\apps\struts2-blank.war 3、复制 WEB-IN原创 2016-06-22 18:17:35 · 443 阅读 · 0 评论 -
Eclispe添加本地Struts2的DTD文件
在封闭式开发的时候电脑不能联网,因此就要用到本地DTD。struts2的struts-default和DTD都在struts-2.3.24.1\src\core\src\main\resources下原创 2016-06-22 18:28:40 · 343 阅读 · 0 评论 -
字符串中对中文自动编码,英文不编码
在URL字符串对中文自动编码,英文不会编码 转自:http://www.jianshu.com/p/9be694c8fee2public static String toUtf8String(String s) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < s.length(); i++) {转载 2017-03-09 21:56:18 · 416 阅读 · 0 评论 -
使用阿里云的maven
在maven项目路径C:\Users\Administrator\.m2新建文件 settings.xml<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem...转载 2018-06-15 13:03:43 · 277 阅读 · 0 评论 -
maven仓库设置国内源,自定义存储位置
maven仓库设置国内源,自定义存储位置路径地址: C:\Users\Administrator.m2文件名:settings.xml<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...原创 2018-06-30 14:50:32 · 3320 阅读 · 0 评论 -
Java中Math类的几个四舍五入方法的区别
JAVA取整以及四舍五入下面来介绍将小数值舍入为整数的几个方法:Math.ceil()、Math.floor()和Math.round()。 这三个方法分别遵循下列舍入规则: Math.ceil()执行向上舍入,即它总是将数值向上舍入为最接近的整数; Math.floor()执行向下舍入,即它总是将数值向下舍入为最接近的整数;Math.round()执行标准舍入,即它总是将数值四舍五入...转载 2018-08-20 15:36:02 · 1042 阅读 · 0 评论