首页
博客
源码
资源
博客
源码
写文章
发布博客
发布资源
登录
X
springboot
相关资讯
热门
最新
百科问答
01-01 08:00
百科问答
SpringBoot+MyBatis+MySQL读写分离
SpringBoot+MyBatis+MySQL读写分离 一、主从配置 1.环境 操作系统:CentOS-7 MySQL:mysql-5.7 192.168.15.129 master 192.168.15.130 slave 2.主库配置 vi /etc/my.cnf在[mysqld]下增加如下两行设置: [mysqld] log-bin=mysql-bin server-id=1
59
代码人生
01-01 08:00
代码人生
SpringBoot超级好用的启动类插件-JBLSpringBootAppGen
SpringBoot超级好用的启动类插件-JBLSpringBootAppGen JBLSpringBootAppGen一键生成启动类和yml配置文件 在所选择的包上右键 file 选择它 下一步 你要的启动类和配置文件生成了,如图 ------完结-------- --------每天进步一点点,亲爱的你,今天也要开心呀 原文:https://www.cnblogs.
87
代码人生
01-01 08:00
代码人生
springboot application.properties(数据库jdbc mybatis redis )
springboot application.properties(数据库jdbc mybatis redis ) server.port=9090 spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/myapp?useSSL=true&useUnicode=true&server
95
代码人生
01-01 08:00
代码人生
Springboot整合通用mapper
Springboot整合通用mapper 版本:tk.mapper-2.0.2开发工具:IDEA2020.3 1.导入依赖 <!--数据库驱动--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</art
141
代码人生
01-01 08:00
代码人生
springboot+mybatis,扫描不到mapper
springboot+mybatis,扫描不到mapper 无法扫描到接口实现,‘com.sclp.mapper.GenTableMapper‘ that could not be found. Description: Field genTableService in com.sclp.controller.GenController required a bean of type ‘com.sclp.m
95
代码人生
01-01 08:00
代码人生
springboot配置文件application-dev.properties,application-prod.properties,application-test.properties
springboot配置文件application-dev.properties,application-prod.properties,application-test.properties springboot的配置文件有以下application.propertiesapplication-dev.properties 开发环境application-prod.properties 运行环境application-test.properties 测试环境 在
112
代码人生
01-01 08:00
代码人生
SpringBoot 出现 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
SpringBoot 出现 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported SpringBoot 出现 Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported // TODO原文:https://www.cnblogs
110
代码人生
01-01 08:00
代码人生
SpringBoot项目运行时报错:Command line is too long. Shorten command line for RootApplication or also for Spring Boot default configuration.
SpringBoot项目运行时报错:Command line is too long. Shorten command line for RootApplication or also for Spring Boot default configuration. Error running ‘RootApplication‘: Command line is too long. Shorten command line for RootApplication
161
代码人生
01-01 08:00
代码人生
Springboot-整合mybatis 之 通用Mapper使用
Springboot-整合mybatis 之 通用Mapper使用 通用Mapper 简述 : 它是由国内一个大神针对mybatis 单表操作写的一个组件。如果多表操作的话,还是需要编写.xml映射文件并自己手写sql语句。 使用操作: 引入通用mapper 启动器,在通用github上可以找到,相应的
100
代码人生
01-01 08:00
代码人生
Springboot在Controller类上添加RequestMapping后静态资源找不到
Springboot在Controller类上添加RequestMapping后静态资源找不到 静态资源原来的路径上出现了RequestMapping("/admin")中的/admin 这个时候添加添加一个配置类 package com.xzj.config; import org.springframework.context.annotation.Configu
110
«
1
2
...
4
5
6
7
8
9
10
...
71
72
»