会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DarJeely
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
144
145
146
147
148
149
150
151
152
···
168
下一页
2019年5月5日
缓存清理
摘要: 1.C:\Users\Charles\AppData\Local\CodeRush for VS .NET\1.1\SolutionCache 2、C:\Users\Charles\AppData\Local\JetBrains\Transient\ReSharperPlatformVs15\v11
阅读全文
posted @ 2019-05-05 10:49 DarJeely
阅读(284)
评论(0)
推荐(0)
2019年4月30日
maven scope provided和runtime的例子
摘要: maven常用的scope有compile,provided,runtime,test。 complie是默认值,表示在build,test,runtime阶段的classpath下都有依赖关系。test表示只在test阶段有依赖关系,例如junitprovided表示在build,test阶段都有
阅读全文
posted @ 2019-04-30 11:19 DarJeely
阅读(2116)
评论(0)
推荐(0)
maven依赖scope配置项讲解
摘要: 本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lisongjia123/article/details/56299006我们在使用Maven配置依赖项的时候,常常只会配置Maven的坐标以及版本信息就可以了,但我们看其他人的工程代码的时候常常会见到有个sco
阅读全文
posted @ 2019-04-30 11:19 DarJeely
阅读(816)
评论(0)
推荐(0)
关于maven依赖中的<scope>provided</scope>使用
摘要: 今天开发web的时候,需要用到servlet-api,于是在pom.xml中添加依赖 通过插件启动tomcat的时候,报错,里面有一段是这样的: 产生的原因是:tomcat中也有servlet-api包,这样,发生了冲突 解决方法:添加<scope>provided</scope>,因为provid
阅读全文
posted @ 2019-04-30 11:12 DarJeely
阅读(707)
评论(0)
推荐(0)
maven dependency中scope=compile 和 provided区别
摘要: 问题再现: 上次这边朋友问我一个问题,就是他们在pom.xml中的dependency中,看到有一些是<scope>provided</scope>的情况,比如如下: 他们问我scope在何种情况下要设置为provided,以及和scope设置为compile的区别。 解释: 其实这个问题很简单。
阅读全文
posted @ 2019-04-30 11:11 DarJeely
阅读(540)
评论(0)
推荐(0)
springmvc进阶(5):mvc:default-servlet-handler详解
摘要: 我们在配置dispatchServlet时配置<url-pattern>/</url-pattern>拦截所有请求,这时候dispatchServlet完全取代了default servlet,将不会再访问容器中原始默认的servlet,而对静态资源的访问就是通过容器默认servlet处理的,故而这
阅读全文
posted @ 2019-04-30 10:01 DarJeely
阅读(1404)
评论(0)
推荐(0)
【Spring框架】<mvc:default-servlet-handler/>的作用
摘要: 优雅REST风格的资源URL不希望带 .html 或 .do 等后缀.由于早期的Spring MVC不能很好地处理静态资源,所以在web.xml中配置DispatcherServlet的请求映射,往往使用 *.do 、 *.xhtml等方式。这就决定了请求URL必须是一个带后缀的URL,而无法采用真
阅读全文
posted @ 2019-04-30 09:59 DarJeely
阅读(452)
评论(0)
推荐(0)
“context:include-filter”与“context:exclude-filter”标签作用解释
摘要: 注意到spring中<context:component-scan>标签中会出现include和exclude的子标签,具体是做什么用的? spring的配置文件与springmvc的配置文件分开加载,在spring容器初始化的时候,会先加载(web.xml)<context-param>中的配置,
阅读全文
posted @ 2019-04-30 09:44 DarJeely
阅读(392)
评论(0)
推荐(0)
spring中的context:include-filter和context:exclude-filter的区别
摘要: 在Spring 的配置文件中有: <context:component-scan base-package="njupt.dao,njupt.service"> <context:exclude-filter expression="org.springframework.stereotype.Co
阅读全文
posted @ 2019-04-30 09:43 DarJeely
阅读(313)
评论(0)
推荐(0)
<context:component-scan>详解 转发 https://www.cnblogs.com/fightingcoding/p/component-scan.html
摘要: <context:component-scan>详解 默认情况下,<context:component-scan>查找使用构造型(stereotype)注解所标注的类,如@Component(组件),@Service(服务),@Controller(控制器),@Repository(数据仓库) 我们
阅读全文
posted @ 2019-04-30 09:41 DarJeely
阅读(232)
评论(0)
推荐(0)
上一页
1
···
144
145
146
147
148
149
150
151
152
···
168
下一页
公告