会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gali
一 懒 众 衫 小 ……
博客园
首页
新随笔
联系
管理
2022年3月22日
Jetpack ROOM使用示例
摘要: module 下build.gradle 配置 schemas defaultConfig { javaCompileOptions { annotationProcessorOptions { arguments = ["room.schemaLocation": "$projectDir/sch
阅读全文
posted @ 2022-03-22 19:57 咖喱不见不散啊
阅读(123)
评论(0)
推荐(0)
2019年8月11日
Spring boot Security 登陆安全配置
摘要: 实现的效果 访问url时,如果未登录时跳转到Login界面,要求用户登陆,如果登陆过返回请求的数据。 效果图 访问数据时,未登录返回login界面 登陆操作 登陆成功进入登出界面 登陆成功后再次访问数据 POM 文件 加入 Security 配置,数据库使用maybatis。 WebSecurity
阅读全文
posted @ 2019-08-11 22:00 咖喱不见不散啊
阅读(828)
评论(0)
推荐(0)
2019年7月10日
Spring boot Aop 示例
摘要: 需要的依赖 ASPECT 一个简单的controller Pointcut 执行表达式的格式 参考 1: execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern)
阅读全文
posted @ 2019-07-10 14:43 咖喱不见不散啊
阅读(872)
评论(0)
推荐(0)
2019年7月7日
Spring boot 事务Transactional
摘要: 开启事务只需要加上注解@Transactional即可 开启事务,mysql 数据表引擎类型应是innoDB类型。 MYSQL 修改数据表存储引擎的方法 https://www.cnblogs.com/wanghuaijun/p/5829872.html MySQL作为最常用的数据库,经常遇到各种各
阅读全文
posted @ 2019-07-07 21:33 咖喱不见不散啊
阅读(394)
评论(0)
推荐(0)
Spring boot druid 的配置使用
摘要: 依赖加入 YML 入口程序配置自定义Bean 进入配置的地址 http://localhost:8080/druid
阅读全文
posted @ 2019-07-07 01:31 咖喱不见不散啊
阅读(2897)
评论(0)
推荐(0)
2019年7月4日
Spring boot Bean装配
摘要: . Spring boot bean 默认创建的bean 为singleton模式 . @Component 注解 . @Value 为属性初始化 . @Value("${}") 可以使用yml里面的配置信息 yml 主入口
阅读全文
posted @ 2019-07-04 17:43 咖喱不见不散啊
阅读(406)
评论(0)
推荐(0)
2019年7月1日
Spring mybatis thymeleaf 基础操作,实现数据展示,修改,删除,查询
摘要: 目录结构如图 index.html add.html mapper/student.xml StudentHtmlController 这里使用@Controller ,不再使用@RestController ThymeleafApplication 使用@MapperScan 扫描Mapper 包
阅读全文
posted @ 2019-07-01 18:14 咖喱不见不散啊
阅读(4872)
评论(1)
推荐(0)
2019年6月30日
Spring boot MyBatis基本操作
摘要: XML 配置方式 目录结构 数据库信息: 数据库student -> 表名 custom_user -> 主键-> custom_id ,其他字段 cusotm_name,custom_age 1.加入依赖 pom.xml如下 2.mybatis-config.xml (暂时没有配置具体信息) 3.
阅读全文
posted @ 2019-06-30 02:54 咖喱不见不散啊
阅读(232)
评论(0)
推荐(0)
2019年6月23日
Spring boot JPA 简单配置使用
摘要: JPA 常用配置: DataSource 配置: 目录结构 1. pom.xml 2. logback-spring.xml 3. RestController 4.CustomUser 5. CustomRepository JPA 使用 code: idea_code的副本 JPA 占位符 ?1
阅读全文
posted @ 2019-06-23 21:05 咖喱不见不散啊
阅读(1893)
评论(0)
推荐(0)
2019年6月18日
Spring 错误日志
摘要: 异常:logback-spring.xml 加上 如下的property 加报错? 原因?
阅读全文
posted @ 2019-06-18 14:01 咖喱不见不散啊
阅读(1508)
评论(0)
推荐(0)
下一页
公告