![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
Cr_Wr
入门级程序猿
展开
-
springboot整合shiro 入门学习
dependency: <!-- Subject 用户 SecurityManager 管理所有用户 Realm 连接数据 --> <!--shrio整合spring的包 --> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> &l原创 2020-09-18 17:39:11 · 116 阅读 · 0 评论 -
MybatisPlus自动生成代码
MybatisPlus代码自动生成器 AutoGenerator 是 MyBatis-Plus 的代码生成器,通过 AutoGenerator 可以快速生成 Entity、Mapper、Mapper XML、Service、Controller 等各个模块的代码,极大的提升了开发效率。 public static void main(String[] args) { //构建一个代码自动生成器对象 AutoGenerator mpg = new AutoGene原创 2020-09-10 16:08:30 · 481 阅读 · 0 评论 -
Spring学习-3 AOP
什么是AOP: AOP:全称是Aspect Oriented Programming 即:面向切面编程,通过预编译方式和运行期间动态代理实现程序功能的统一维护的一种技术。AOP是OOP(面向对象编程)的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生范型。利用AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度降低,提高程序的可重用性,同时提高了开发的效率。 简单地说它就是把我们程序的重复代码抽出来,在需要执行的时候,使用动态代理技术,在不原创 2020-07-29 12:26:56 · 110 阅读 · 0 评论 -
spring入门学习2-spring的常用注解
spring的常用注解 <bean id="accountService" class="com.leon.service.impl.AccountServiceImpl" scope="" init-method="" destroy-method=""> <property name="" value="" / ref=""></property> </bean> 常用注解的分类: 用于创建对原创 2020-07-27 16:51:30 · 85 阅读 · 0 评论 -
Spring入门学习
spring基于XML的IOC环境搭建和入门 1.使用maven添加依赖关系 pom.xml依赖关系添加如下 <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifac...原创 2020-07-26 22:11:41 · 84 阅读 · 0 评论 -
使用Druid创建Mysql的数据库连接对象
1.导入druid-1.0.9.jar 将下载好的druid-1.0.9.jar 导入至项目文件的libs下,并将其添加到Library 2.定义配置文件/加载配置文件 (1).导入配置文件 druid的配置文件的类型为properties,与C3P0不同的是,C3p0的配置文件固定放置到src下系统默认自动加载,而druid的配置文件可以放置在任意目录下,在使用时需要指定路...原创 2020-03-28 13:05:20 · 853 阅读 · 0 评论