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年前
Spring Security(3):配置与自动配置的介绍及源码分析
基于注解的配置(JavaConfiguration)从SpringSecurity3.2开始就已经支持,本篇基于Springboot注解的配置进行讲解,如果需要基于XML配置(SecurityNamespaceConfiguration),可查阅SpringSecurity官网:https://docs.spring.io/springse
Stella981 Stella981
3年前
PhoneGap设置Icon
参考:http://cordova.apache.org/docs/en/latest/config\_ref/images.html通过config.xml中的<icon标签来设置Icon<iconsrc"res/ios/icon.png"platform"ios"width"57"height"57"densi
Stella981 Stella981
3年前
Idea Tomcat Struts2 hello world 项目出现 500错误 问题解决方法
首先,项目的基础代码是没有错误的!绝对没错,任何代码都保证没有错误,XML配置也没有问题,但是跑起来一直报http500HTTPStatus500typeExceptionreportmessagedescriptionTheserverencounteredan
Wesley13 Wesley13
3年前
JavaWeb学习总结(四十八)——模拟Servlet3.0使用注解的方式配置Servlet
一、Servlet的传统配置方式  在JavaWeb开发中,每次编写一个Servlet都需要在web.xml文件中进行配置,如下所示:1<servlet2<servletnameActionServlet</servletname3<servletcla
Easter79 Easter79
3年前
Spring的component
本文是基于Spring4.3.5.RELEASE的版本进行的分析和实践在Spring的web项目里面,如果我们需要在类似applicationContext.xml里面加上<context:componentscanbasepackage"${component.scan.package}"/让base
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年前
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
Wesley13 Wesley13
3年前
Java字符串模板格式化汇总8法(附性能对比)
TableofContents1\.(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fvenusdrogon%2Ffeilongcore%2Fwiki%2F%25E5%25AD%2597%25E7%25