Easter79 Easter79
3年前
tomcat设虚拟目录,存放数据库的图片,在页面上显示
1.找到eclipse配置的tomcat目录,找到server.xml!(https://static.oschina.net/uploads/space/2017/0602/103122_ItVx_3506562.png)2.找到<Host</Host,在其中添加<Contextpath"basePath"docBase"E:\\i
Stella981 Stella981
3年前
SpringBoot返回date日期格式化,解决返回为TIMESTAMP时间戳格式或8小时时间差
问题描述    在SpringBoot项目中,使用@RestController注解,返回的java对象中若含有date类型的属性,则默认输出为TIMESTAMP时间戳格式 ,如下所示:!(https://oscimg.oschina.net/oscnet/9ec8c281759f3577bc3b063411eb5f88aba.
Stella981 Stella981
3年前
C#下载csv代码总结
一、C导出csv格式代码如下:1///<summary2///下载3///</summary4///<paramname"startTime"</param5///<
Wesley13 Wesley13
3年前
JAVA程序获取Tomcat的运行状态
用浏览器来查看Tomcat的运行状态:    配置Tomcat的管理用户和权限。    打开%Tomcat\_Home%/conf/目录下的tomcatuser.xml文件,配置以下内容:<role rolename"managerstatus"/<role rolename"manager"/  
Stella981 Stella981
3年前
Idea Tomcat Struts2 hello world 项目出现 500错误 问题解决方法
首先,项目的基础代码是没有错误的!绝对没错,任何代码都保证没有错误,XML配置也没有问题,但是跑起来一直报http500HTTPStatus500typeExceptionreportmessagedescriptionTheserverencounteredan
Easter79 Easter79
3年前
SpringBoot返回date日期格式化,解决返回为TIMESTAMP时间戳格式或8小时时间差
问题描述    在SpringBoot项目中,使用@RestController注解,返回的java对象中若含有date类型的属性,则默认输出为TIMESTAMP时间戳格式 ,如下所示:!(https://oscimg.oschina.net/oscnet/9ec8c281759f3577bc3b063411eb5f88aba.
Stella981 Stella981
3年前
IDEA+SpringBoot+Mybatis Generator+MySQL8.0.17自动生成实体类和Mapper
1、搭建SpringBoot项目2、修改pom.xml文件添加依赖:!(https://oscimg.oschina.net/oscnet/15023a0b19569ea825b5255db0d44d1a651.png)<dependency<groupIdmysql</groupId<artifactIdmysq
Stella981 Stella981
3年前
Maven镜像源
Maven仓库镜像修改Mavensetting.xml文件在<mirrors标签内添加以下镜像。<fontcolor"red"注意:如果构建错误,请根据错误信息,调整镜像位置</font<mirror<idrepo2</id<mirrorOfcentral</m
Stella981 Stella981
3年前
C++中字符编码的转换(Unicode、UTF
C的项目,字符编码是一个大坑,不同平台之间的编码往往不一样,如果不同编码格式用一套字符读取格式读取就会出现乱码。因此,一般都是转化成UTF8这种平台通用,且支持性很好的编码格式。Unicode、UTF8的概念不做过多解释,这里说一下ANSI,我第一次看到这个名词,我看成了ASCII。被Mentor狠批一顿。ANSI是一种字符代码,为使计算机支
Stella981 Stella981
3年前
Mybatis自动生成实体类
Maven自动生成实体类需要的jar包一、pom.xml中1<projectxmlns"http://maven.apache.org/POM/4.0.0"xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance"xsi:schemaLocation"http://maven.a