记录真实开发问题、项目实践和两三句就能说明白的技术点
1.简单开启事务管理 @EnableTransactionManagement // 启注解事务管理,等同于xml配置方式的 <tx:annotation-driven /> 2.事务注解详解 默认遇到throw new RuntimeEx…
Maven 报 Error executing Maven / 1 problem was encountered while building the effective settings 的原因:settings.xml 格式错误(标签不匹配、多了多余字符或标签)。核对...
1.升序排序,1,2,3 list=list.stream().sorted(Comparator.comparing(VipCardVo::getVipCardType)).collect(Collectors.toList()); 2.…
Maven 编译报 No compiler is provided / Perhaps you are running on a JRE rather than a JDK 的原因与解决办法(Eclipse 指向 JDK)。
axios它是基于promise的http库,可运行在浏览器端和node.js中,然后作者尤雨溪也是果断放弃了对其官方库vue-resource的维护,直接推荐axios库,小编我也是从vue-resource转换过来的,差别说不来,我们讲…
解决方案 一 Eclipse如果报错:The import XXX cannot be resolved,xxx类都没什么问题。 解放方法 project--》clean下。 alt+/ 有时候不灵。
YAML 报 Expecting a Mapping node but got 的原因与修正:缩进未对齐、冒号后缺空格。附 Spring Cloud 配置示例。
运行 Spring Boot 报“找不到或无法加载主类”,多因编译产物缺失、JDK 版本不匹配或运行配置错误。本文给出重新编译、对齐 JDK、确认主类等完整排查步骤。
问题: eclipse环境下报错:log cannot be resolved 由于最近在弄elastic-job ,在下载源码后会报一些错误,变量log 找不到,没有getter/setter 方法之类的。 之前没有接触过lombok ,…
HttpClient 4.5 入门:官方英文文档与中文文档地址,及 CloseableHttpClient / HttpGet / HttpPost / RequestConfig 的核心用法与 GET、POST 表单最小示例(含连接池、响应体关闭注意事项)。
Maven 中央仓库(mvnrepository.com),可查询 Java 依赖的坐标(groupId/artifactId/version)、可用版本与下载来源,是日常引包必备站点。
Spring Boot 中 Controller 接收参数常用 @PathVariable(路径)、@RequestParam(查询)、@RequestBody(请求体)、@RequestHeader、@CookieValue 等。本文按请求位置分类并给出代码示例。
mybatis 3 中文文档 http://www.mybatis.org/mybatis-3/zh/configuration.html MyBatis | 入门和基础 https://www.jianshu.com/p/510a7a84…
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured 项目appl…
引入 MyBatis/MyBatis-Plus 后启动报 sqlSessionFactory/sqlSessionTemplate 缺失。本文从依赖、Mapper 扫描、数据源配置、多数据源四个维度给出解决方案与排查顺序。