- 浏览: 428611 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (211)
- 思考》感想 (11)
- 数据库操作 譬如Oracle大叔 (7)
- java,咱们有缘吗 (16)
- delphi,你还好吗 (2)
- SSH,哥三儿好 (31)
- 问题!问题?问题!? (9)
- WITH WORK (1)
- 算法与模式 莫事^_^ (10)
- JSP,可以叫你P兄么 (2)
- 啊,咋科斯╮(╯▽╰)╭ (6)
- 巨人肩上的小石子 (2)
- flash她妹flex (38)
- 项目管理 (10)
- 奥特曼,你弟Android来了 (4)
- 麻辣儿gis (0)
- maven 嘛味儿 (3)
- ws 哇塞 webservice (5)
- Oh,no!!!,NoSql (1)
- QQ他哥也是个企鹅,Linux (6)
- 姓i还是姓my 你都叫batis ibatis (3)
- 我喜欢夏天(春天旁边的那个季节)Springside (1)
- 测试! 测就测吧,没有喝(⊙o⊙) (3)
- 是晕+_+ 是浮云 还是云计算 (4)
- ExtJS 你是flex他哥还是他妹 (10)
- svg 你丫的资料真少 (3)
- 叫屁屁还是叫加加 ⊙﹏⊙ c++ (5)
- 鸟,还是只百灵鸟 BIRT (1)
- 权限管理 有权真好 是吧-_-! (1)
- SSH (2)
- 哥三儿好 (2)
- nginx (1)
- Oh (1)
- no!!! (1)
- NoSql (1)
最新评论
-
mong619226543:
谢谢
No identifier specified for entity -
akka_li:
没看懂啥意思!什么原因导致java.net.SocketExc ...
java.net.SocketException: Connection reset 问题解决方法 -
west_jing:
1L正解,<mvc:annotation-dri ...
<mvc:default-servlet-handler/> 导致 Controller失效 -
u010954806:
tgfhfdhdf
Spring Security 国际化文件 messages_zh_CN.properties 中文解释 -
yenshen:
我也碰到这个问题了,找了一大圈,最终问题解决了:<pre ...
<mvc:default-servlet-handler/> 导致 Controller失效
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <context:annotation-config /> <context:component-scan base-package="com.xj" /> <!-- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3306/spring" /> <property name="username" value="root" /> <property name="password" value="bjsxt" /> </bean> --> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <value>classpath:jdbc.properties</value> </property> </bean> <bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="${jdbc.driverClassName}" /> <property name="url" value="${jdbc.url}" /> <property name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> </bean> <bean id="sf" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <!-- <property name="annotatedClasses"> <list> <value>com.bjsxt.model.User</value> <value>com.bjsxt.model.Log</value> </list> </property> --> <property name="annotatedClasses"> <list> <value>com.xx.model.City</value> <value>com.xx.model.Department</value> <value>com.xx.model.Employee</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.auto">update</prop> <prop key="hibernate.current_session_context_class">thread</prop> </props> </property> </bean> <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> <property name="sessionFactory" ref="sf"></property> </bean> <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sf" /> </bean> <aop:config> <aop:pointcut id="bussinessService" expression="execution(public * com.xj.service.*.*(..))" /> <aop:advisor pointcut-ref="bussinessService" advice-ref="txAdvice" /> </aop:config> <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="exists" read-only="true" /> <tx:method name="add*" propagation="REQUIRED"/> </tx:attributes> </tx:advice> </beans>
发表评论
-
Spring Security 国际化文件 messages_zh_CN.properties 中文解释
2011-05-04 17:08 7031Spring Security 国际化文件 messages_ ... -
两个Spring Security问题
2011-05-04 17:06 2059两个Spring Security问题 ---------》 ... -
一个spring security 配置列子
2011-05-03 16:48 1220<?xml version="1.0" ... -
spring security与数据库交互实现简单例子
2011-04-19 16:34 1633spring security与数据库交互实现简单例子 最近 ... -
用struts2 验证用户登录demo
2011-01-28 15:38 2154用struts2 验证用户登录de ... -
Struts2.1.8 执行顺序
2011-01-28 15:18 865public class LoginAction extend ... -
Struts2令人纠结的一个问题
2011-01-27 09:47 970我用Struts2加入自定义的library如下图,就报错, ... -
Hibernate关系映射总结
2010-10-18 10:35 1243其实这些东东完全可以参考帮助文档;这里只是总结下。 》》》一对 ... -
No identifier specified for entity:XX.xx
2010-10-12 17:25 1646No identifier specified for ent ... -
Annotation对Hibernate中联合主键定义
2010-10-11 13:28 2202public class User { private in ... -
@MappedSuperclass的用法
2010-10-11 10:21 12588@MappedSuperclass的用法 用在实体的继承过程 ... -
公共dao的结构
2010-09-29 16:17 1337-----------》公共dao的结构 -----共用接口 ... -
No identifier specified for entity
2010-09-29 16:07 11960org.hibernate.AnnotationExcepti ... -
SSJ配置模板
2009-09-14 09:06 859web.xml-----> <?xml versi ... -
一个简单的ssh配置模板
2009-09-12 17:08 1683web.xml------> <?xml vers ... -
Struts----学习笔记 用form提交和sturts提交
2009-09-12 17:02 1193struts是这么配置的 <action path= ... -
Spring学习笔记------Spring和Hibernate的整合配置
2009-09-12 09:15 1390Spring和Hibernate整合配置有两种方式: 方 ... -
Spring学习笔记--------AOP操作
2009-09-10 10:29 1034* AOP操作可与通过注解和xml的方式实现; * 有个问题, ... -
Hibernate学习笔记1--------一个简单的应用
2009-08-30 08:26 994工具类---------> /** *用单例模式 ... -
Hibernate学习笔记2--------------------一对多、多对一简单配置
2009-08-30 08:40 972一的一端------------------------> ...
相关推荐
spring配置文件是用于指导Spring工厂进行Bean生产、依赖关系注入(装配)及Bean实例分发的"图纸"。Java EE程序员必须学会并灵活应用这份"图纸"准确地表达自己的"生产意图"。Spring配置文件是一个或多个标准的XML文档...
swagger-bootstrap-ui是springfox- swagger的增强UI实现,为Java开发者在使用Swagger的时候,能拥有一份简洁、强大的接口文档体验 swagger-annotations,swagger-models是因为springfox-swagger2包里有swagger- ...
spring boot项目记录日志、...error日志单独输出一份至一个文件夹中,设置滚动策略与info日志保持一致时间滚动策越+单个文件最大滚动策略,如果对日志滚动备份不太清楚的话可以去官网上看一看,上面有详细的说明文档;
基于Spring、Hibernate、Spring-MVC的留言本,基本功能有:发表留言、留言回复、分页展示、管理员登陆注销、管理员删除和回复留言等功能,内附一份已完成的实验报告模板。资源内容完整,导入eclipse中,修改jdbc、...
真是不好意思,后来发现Dao层注入是在接口,接口实现类完全没必要要了,但是要保证接口方法和mybatis的配置文件一致,搁着一段时间没弄了,最近又开始捣鼓了,现在加权限到时候在放出来 SSM(struts2+spring3+mybatis)整合...
@Configuration 和 @Bean 注解用于Java配置,允许开发者用程序的方式定义Spring容器中的bean,取代传统的XML配置文件。 @Value 提供了一种方便的方式来注入简单类型的属性,支持SpEL表达式和外部配置。
里面有springjdbc的使用,在配置文件中还包含了一份详细的mybatis-generator配置以及自动生成的mybatis代码,加快开发的效率
这是本人周末期间,无聊时之作,说实在的,当时整的时候坑得要死,后来网上查各种资料,这个框架也并非全部由本人整合,至少jar包是借用别人已经整合好的,其它的一些配置文件和源码,要么就是太繁杂,要么就是太...
多环境配置 我们在开发Spring Boot应用时,通常同一套程序会被应用和安装到几...对于多环境的配置,各种项目构建工具或是框架的基本思路是一致的,通过配置多份不同环境的配置文件,再通过打包命令指定需要打包的内容之
本资源包含一份基于Spring Boot开发的校园外卖服务系统的毕业论文及其对应的毕设源代码,旨在帮助读者深入了解Spring Boot框架在构建Web应用中的实践应用,并能够通过源代码学习如何进行二次开发定制,以适应不同的...
通过SpringCloud框架构建一套全面的微服务解决方案,应用绝大部分的SpringCloud组件合理实现业务逻辑,为现有的微服务应用实现提供一份可以拿来即用的源码。 环境 CenOS7 + Docker RabbitMQ MySQL + Redis 应用技术 ...
最近,我收到了一份创建简单 SOAP 端点的任务。 JAVA EE 和 JAX-WS 将是一个不错的选择,但我决定坚持使用 Spring WS 和 Spring Boot 作为超级胶水。 作业涵盖了以下主题: 创建两个端点,根据简单过滤返回查询...
在Java项目开发中,经常... 但是我们有这种场景,为了降低配置文件的运维难度,一份有详细注释的的配置文件是我们需要。当然我们期望的不仅仅是降低运维难度,我们还期望降低开发的开发难度。因此有了这个开源项目。
报告的测试统计等功能为你的每一个接口展示一份完美的报告。 报告的关键特性: a)让所有接口可视化,易于控制开发、并行开发 b)为每一个接口提供测试统计以及报表展示 c)简化spring mvc繁琐配置 d)report请求...
PKUAutoElective 2021Spring版 本项目基于 ,对2021Spring学期的选课网站API进行了调整。并针对验证码系统的对准,将识别系统转为...请首先将apikey.sample.ini复制一份并改名为apikey.ini,并按照以下说明进行配置。
总的来说,这份资源对于学习Spring Boot框架和Web应用开发的同学来说是一份难得的宝贵财富,它不仅能够帮助他们深入理解相关技术和原理,还能够提供实际的项目经验,为他们的学习和职业发展打下坚实的基础。
如果需要实现自己的配置管理器,开发者则可以实现一个实现Configuration接口的类,该类可以自己加载Struts 2配置文件. struts.locale 指定Web应用的默认Locale. struts.i18n.encoding 指定Web应用的默认编码集.该...
源代码部分则是系统实现的具体体现,包含了所有功能模块的完整代码以及相关的配置文件。这些代码经过精心设计与优化,具有良好的可读性和可维护性,为后续的二次开发或定制提供了极大的便利。开发者可以根据实际需求...
同时,项目还提供了必要的配置文件和依赖管理文件,方便开发者快速搭建和运行项目。 此外,该项目具有良好的二次开发定制性。开发者可以根据实际需求,在现有功能的基础上进行扩展和优化,添加新的功能模块或改进...
源代码以RAR格式打包,包含了系统的所有模块和配置文件,读者可以直接解压并运行,体验系统的各项功能。 总之,本毕业论文及附带的源代码,不仅为开发者提供了一个鲜牛奶订购系统的实现范例,也展示了Spring Boot在...