自学笔记
Myzrsweety
这个作者很懒,什么都没留下…
展开
-
将本地的jar包打包maven中去
将本地的jar包打包maven中去有些项目需要引入本地的jar包,所以在项目打包的时候需要我们把本地的jar包也打包进去这时我们只需要在pom文件中引入即可<!--用户中心sso--> <dependency> <groupId>com.unicom</groupId> <artifactId>uac-sso-sdk</artifactId>原创 2021-06-07 08:55:50 · 190 阅读 · 0 评论 -
阿里连接池报错:Failed to configure a DataSource ‘url‘ attribute is not specified and no embedd
阿里连接池报错:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd明明已经配置数据库连接信息和数据库驱动但是还是一直报这个错后来发现错误出在了启动类上,原本的启动类的注解是这样的:@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})但是由于我们用的是阿里的连接池,需要改成@SpringBootApplic原创 2021-04-19 11:07:10 · 416 阅读 · 0 评论 -
${NACOS_HOST:xxxx}的作用
今天在git中看到了这样的改动server-addr: ${NACOS_HOST:153.35.93.113}:${NACOS_PORT:8105}使用 ${NACOS_HOST:153.35.93.113} 代替原始IP进行配置,如果环境变量NACOS_HOST不存在,则会使用153.35.93.113进行连接,NACOS_PORT同理。...原创 2021-04-12 09:19:45 · 4099 阅读 · 0 评论 -
api-gateway的pom文件
<?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-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/mav原创 2021-04-02 16:33:41 · 1353 阅读 · 1 评论 -
Springboot集成MybatisPlus+Swagger以及slf4j文件日志傻瓜式教学
使用IDEA快速搭建Springboot+mybatisplus+swagger+slf4j笔者自学所用。1.创建项目首先要保障电脑已经安装和配置JDK与Maven通过IDEA直接创建Springboot项目配置项目信息,jdk版本选择8,注意更改Package(非必要)选择web依赖,然后一路next2.测试Springboot在项目中添加controller包(注意:与项目自动生成的Application类同级别), 在包中添加HelloController类。package c原创 2020-08-20 15:36:27 · 1218 阅读 · 0 评论