执键写春秋 执键写春秋
4年前
基于Maven工程下的MyBatis框架+MySQL+连接池的数据查询操作
具体操作项目结构引入项目依赖pom.xml<?xmlversion"1.0"encoding"UTF8"?<projectxmlns"http://maven.apache.org/POM/4.0.0"xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance"xsi
Easter79 Easter79
3年前
springcloud(八) Hystrix监控
一、Feign项目Hystrix自带的监控  在feign项目pom.xml添加:<!1,使用Hystrix的模块hystrixmetricseventstream,就可将这些监控的指标信息以text/eventstream的格式暴露给外部系统。spring
Stella981 Stella981
3年前
Eureka client 启动报错 Completed shut down of DiscoveryClient
由于在创建项目时未选择依赖,启动时控制台报UnregisteringapplicationXXXCLIENTwitheurekawithstatusDOWN,CompletedshutdownofDiscoveryClient错误,需要在对应项目的pom.xml文件中加入依赖即可解决。如下所示:<dependenc
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
Wesley13 Wesley13
3年前
JavaWeb学习总结(四十八)——模拟Servlet3.0使用注解的方式配置Servlet
一、Servlet的传统配置方式  在JavaWeb开发中,每次编写一个Servlet都需要在web.xml文件中进行配置,如下所示:1<servlet2<servletnameActionServlet</servletname3<servletcla
Easter79 Easter79
3年前
Springboot+shiro配置笔记+错误小结(转)
<divclass"postBody"<divid"cnblogs\_post\_body"class"blogpostbody"<p  <spanstyle"color:ff0000"软件152尹以操</span</p<p  springboot不像springmvc,它没有xml配置文件,那该如何配置shiro呢
Easter79 Easter79
3年前
Springboot框架实现图片上传显示并保存地址到数据库
1.在application.properties.xml中配置SpringBoot框架实现图片上传显示并保存地址到数据库springboot上传文件大小限制spring.http.multipart.maxfilesize200MBspring.http.multi
Easter79 Easter79
3年前
Spring的component
本文是基于Spring4.3.5.RELEASE的版本进行的分析和实践在Spring的web项目里面,如果我们需要在类似applicationContext.xml里面加上<context:componentscanbasepackage"${component.scan.package}"/让base
Easter79 Easter79
3年前
Spring之导入和混合配置
  在典型的Spring应用中,我们可能会同时使用自动化和显式配置。即便你更喜欢通过JavaConfig实现显式配置,但有的时候XML却是最佳的方案。幸好在Spring中,这些配置方案都不是互斥的。你尽可以将JavaConfig的组件扫描和自动装配和/或XML配置混合在一起。实际上,就像在2.2.1小节中所看到的,我们至少需要有一点显式配置来启用组件扫描和自
Stella981 Stella981
3年前
Spring+Mybatis+Velocity整合(3):整合Mybatis
正式开始配置关键内容,这是硬货 1、新建spring配置文件,起名为applicationContext.xml,放在src/main/resources/spring目录下。 内容如下:<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.sprin