springboot-mybatis plus增删改查CURD操作
摘要:一、注解 @TableName(value = "person")//指定表名 @TableId(value = "id",type = IdType.AUTO)//指定主键名及自增 @TableField(value = "name")//指定字段名 @TableField(exist = fal
阅读全文
springboot+mybatis plus+mysql
摘要:一、配置pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.
阅读全文
springboot整合redis
摘要:一、配置pom.xml <!-- springboot整合redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId
阅读全文
springboot上传文件
摘要:一、配置pom.xml <!-- spring boot web支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dep
阅读全文
springboot整合Mail
摘要:一、开启POP3/SMTP服务 二、配置pom.xml <!-- 邮件依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <
阅读全文
springboot整合mybatis_事务管理
摘要:一、配置pom.xml <!-- springboot整合MyBatis --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId>
阅读全文
mybatis-generator
摘要:一、配置pom.xml <build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2
阅读全文
springboot整合QuartZ
摘要:一、整合QuartZ @SpringBootApplication(scanBasePackages = {"com.wuxi"}) @EnableScheduling // 开启任务调度 public class Myapplication { //入口 public static void ma
阅读全文
springboot异步调用
摘要:一、异步调用 @SpringBootApplication(scanBasePackages = {"com.wuxi"}) @EnableAsync // 开启异步调用 public class Myapplication { //入口 public static void main(String
阅读全文
springboot自定义拦截器和全局异常处理器
摘要:一、自定义拦截器 @Configuration//声明这是一个配置 public class MyInterceptor extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegist
阅读全文
springboot使用fastjson解析json数据
摘要:一、配置pon.xml <!-- fastjson的依赖 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.15</version> </dependency>
阅读全文
springboot静态资源配置_打包发布
摘要:一、静态资源配置 a、配置application.yml spring: resources: static-locations: classpath:/static/ 二、打包war发布 a、需要打成war包 <packaging>war</packaging> <!-- maven项目packa
阅读全文
springboot配置工程为开发模式
摘要:一、配置idea a、Ctrl+Alt+S => Compiler => Build project automatically; b、Ctrl+Alt+Shift+/ => Registry... => compiler.automake.allow.when.app.running; 二、配置p
阅读全文
springboot整合测试_springboot整合log4j
摘要:一、整合测试 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <d
阅读全文
SpringBootApplication注解_RestController注解
摘要:一、SpringBootApplication注解 //@EnableAutoConfiguration //@ComponentScan("com.wuxi") //********等价******** @SpringBootApplication(scanBasePackages = {"com
阅读全文
javascript原型和继承
摘要:目录一、继承二、原型三、原型三角图四、设置原型对象 一、继承 function Person(name) { // 成员变量 this.name = name; } // 成员方法 Person.prototype.eat = function () { console.log("吃饭") }; /
阅读全文
springboot获取自定义配置的值、获取类型安全的自定义配置的值和profile配置
摘要:一、获取自定义配置的值 application.properties配置 book.name=springboot @Controller或@Service组件配置 @Value("${book.name}") private String name; 二、获取类型安全的自定义配置的值 applic
阅读全文
springboot入门程序
摘要:一、创建maven项目,打包方式为jar包 二、引入依赖 <!-- 父级依赖 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <v
阅读全文
正则表达式
摘要:一、量词 二、方括号 三、修饰符 四、元字符
阅读全文
vue+webpack+sass
摘要:一、引入依赖 npm i sass sass-loader -D 二、配置webpack的loader { test: /\.sass$/, loaders: ['style', 'css', 'sass'] } 三、使用 <style lang="scss"> @import '*.scss';
阅读全文