摘要:
<!–声明事务–> <bean id=”txManager”> <property name=”sessionFactory” ref=”sessionFactory” /> </bean> <!– 创建通知–> <tx:advice id=”txAdvice” transaction-manage 阅读全文
摘要:
主要错误: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 未能配置数据源:未指定“url”属性,也无法配置嵌入式数据 阅读全文
摘要:
springboot项目默认集成了logback application.properties logging.level.com.lhh.myspringboot.dao.AdminDao = DEBUG 其中com.lhh.myspringboot.dao.AdminDao为其dao接口所在的全 阅读全文
摘要:
1.Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lhh.myspringboot.service.AdminService' a 阅读全文
摘要:
在mysql中 create table Student( Student_ID int(6) NOT NULL PRIMARY KEY AUTO_INCREMENT, Student_Name varchar(10) NOT NULL, Student_Age int(2) NOT NULL ); 阅读全文
摘要:
网上找了一大圈,楞是没有非同名数据库的导入, 由于导出的数据库没权限操作,只能拿到导出的sql文件, 这边导入的库没有权限改名称。所以非同名数据库导入sql文件这条路必须走 上图: 打开sql文件, 删除sql文件中的两行,这两行会创建并使用rmxzx-db,而这个数据库名和要导入的数据库名不相同, 阅读全文
摘要:
1.org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题 即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却 阅读全文
摘要:
https://blog.csdn.net/tianshan2010/article/details/105889133/ 阅读全文
摘要:
启动springboot,报错 ***************************APPLICATION FAILED TO START*************************** Description: An attempt was made to call a method th 阅读全文
摘要:
1.org.springframework.web.client.UnknownContentTypeException: Could not extract response: no suitable HttpMessageConverter found for response type [cl 阅读全文
摘要:
来源:https://blog.csdn.net/jinhaijing/article/details/83902191 使用@Value赋值的几种类型; //1、基本数值 //2、可以写SpEL; #{}。 SpEL(Spring Expression Language),即Spring表达式语言 阅读全文
摘要:
问题描述:Tomcat启动不正常,能自动跳转浏览器页面,但找不到页面 idea的编译路径和打包路径可能冲突了,这个问题有时出现有时不出现 解决: 然后把tomcat删除,重新配置。 阅读全文
摘要:
目录 1. 锁用来做什么? 2. 锁的实现方式 3. 死锁问题 4. 生产者消费者中的锁 5. Condition 接口 6. ReentrantLock和ReadWriteLock 7. 关于使用线程安全的集合 8. 关于队列 9. 关于i++的不安全问题与AtomicInteger 10. Se 阅读全文
摘要:
测试控制器最直接的办法可能就是构建并部署应用,然后通过浏览器对其进行访问,但是自动化测试可能会给你更快的反馈和更一致的独立结果。所以,让我们编写一个针对HomeController的测试。 Spring现在包含了一种mock Spring MVC并针对控制器执行HTTP请求的机制。这样的话,在测试控 阅读全文
摘要:
Mybatis查询sql传入一个字符串传参数,报There is no getter for property named 'ids' in 'class java.lang.String'。 解决方法: 1.在接口参数里加上mybatis中的@param注解 @MyBatisDao public 阅读全文