共 19 篇文章 |
|
阅2088 转1 评0 公众公开 19-04-23 09:38 |
例如在com.idearsoft.idear.module.SystemMaintain.action下有个HomeAction.java,在com.idearsoft.idear.module.Main.action也有一个HomeAction.java。 阅28 转0 评0 公众公开 18-07-18 09:18 |
spring boot项目发布tomcat容器(包含发布到tomcat6的方法)2. 其次spring boot的web项目中内嵌tomcat服务器,所以如果我们想要发布war包到tomcat项目,要讲spring boot中内嵌的tomcat包依赖排除,不然产生冲突,打开下面代码中的注释即可。首先spring boot支持的servlet容器如下,可以看出spring boot最低支持的servlet版本是3.0,但是tomcat6... 阅41 转0 评0 公众公开 18-06-26 08:04 |
spring websocket的东东,下来一看,废物,其中包括从github上down下来的。<bean id="websocket" class="com.up.websocket.handler.WebsocketEndPoint"/> <websocket:handlers> <websocket:mapping path="/websocket" handler="websocket"/> <websocket:handshake-... 阅649 转6 评0 公众公开 15-12-09 21:03 |
Spring3自定义环境配置 <beans profile=“”>Spring 3.1的功能,以后就不用为了区分Test, Dev, Production环境,搞几个只有细微区别的application.xml, application-test.xml及引用它们的web.xml了。Xml代码 <context-param> <param-name>spring.profiles.default</param-name> <param-value>production</... 阅259 转0 评0 公众公开 15-03-12 15:07 |
java 对象之间属性值复制。java对象之间属性值复制在许多开源框架中也有实现,在这里介绍下自己的实现、apache commons-beanutils、Spring三种方式实现。采用反射,通过源对象getter 方法获取属性值,并通过目标对象的setter方法设置到目标对象中去。方法能够将源对象和目标对象中相同名称的属性值复制过去。使用该方法需要注意:不能将入口方... 阅689 转4 评0 公众公开 15-01-14 10:00 |
add a comment Your Answer &div class="form-item"&div&label for="display-name"&Name&/label&input id="display-name" name="display-name" type="text" size="30" maxlength="30" value="" tabindex="105"&... 阅50 转0 评0 公众公开 15-01-12 10:58 |
阅33 转0 评0 公众公开 15-01-09 11:44 |
Spring简化了加载资源文件的配置,可以通过<context:property-placeholder去加载,这个元素的写法如下:<context:property-placeholder location="classpath:jdbc.properties"/><context:property-placeholder location="xxx.properties" ignore-unresolvable="true"/>(2) 但是在Spring 2.5中,&... 阅55 转0 评0 公众公开 15-01-09 11:37 |
spring.profiles.active1.在Spring配置文件applicationContext.xml中定义两组环境Java代码 <beans profile="production"> <!-- 生成环境 --> </beans> <beans profile="test"> <!-- 测试环境 --> </beans> 阅2193 转2 评0 公众公开 15-01-04 17:34 |