上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 2023-09-10 spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:33 阅读全文
posted @ 2023-09-10 17:26 努力是一种常态 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 2023-09-10 spring: profiles: active: dev spring: profiles: dev server: port: 8080 spring: profiles: pro server: port: 8081 spring: profiles: test serv 阅读全文
posted @ 2023-09-10 15:26 努力是一种常态 阅读(92) 评论(2) 推荐(0) 编辑
摘要: 2023-09-10 maven中配置多环境的写法 <!-- 多环境配置--> <profiles> <!-- 开发环境--> <profile> <id>env_dep</id> <properties> <jdbc.url>jdbc:mysql://127.0.0.1:3306/db01?use 阅读全文
posted @ 2023-09-10 12:05 努力是一种常态 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 2023-09-09 BusinessException package com.hh.exception; /** * @author hh * @version 1.0 * @DATE 2023-09-09 9:39:49 */ public class BusinessException ex 阅读全文
posted @ 2023-09-09 10:10 努力是一种常态 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 2023-09-09 注意,注意,一定要注意,mybatis的jar包与mybatis-spring的jar包的版本,一定要看这两个jar包的版本下面是与java8匹配的版本 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" 阅读全文
posted @ 2023-09-09 00:32 努力是一种常态 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 2023-09-08 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.15.2</version> </dependency 阅读全文
posted @ 2023-09-08 11:20 努力是一种常态 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 2023-09-07 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文
posted @ 2023-09-07 17:10 努力是一种常态 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 2023-09-07 注意:spring整合junit中的依赖要和spring-context的依赖版本相一致 <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> 阅读全文
posted @ 2023-09-07 15:11 努力是一种常态 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 2023-09-07 jdbc.properties 注意里面的url中此时里面书写的是&而不是转移之后的,以及要注意数据库的名称是否存在 jdbc.driverClassName=com.mysql.cj.jdbc.Driver jdbc.url=jdbc:mysql://localhost:33 阅读全文
posted @ 2023-09-07 14:59 努力是一种常态 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 2023-09-07 package com.hh.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configura 阅读全文
posted @ 2023-09-07 12:19 努力是一种常态 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页