• 2024-09-05【阅己书城】解决跨域
    1、跨域产生的条件当前页面url被请求页面url是否跨域原因http://www.test.com/http://www.test.com/index.html否同源(协议、域名、端口号相同)http://www.test.com/https://www.test.com/跨域协议不同(http/https)http://www.test.com/http://www.baidu.com
  • 2024-09-05【阅己书城】递归组装菜单
    1、背景商品三级分类2、代码/***查询所有分类以及子分类,以树形结构组装起来*/publicList<CategoryEntity>listWithTree(){//查出所有分类List<CategoryEntity>categoryEntities=baseMapper.selectList(null);List<Ca
  • 2024-08-31【阅己书城】整合mybatis-plus
    1、导入依赖<dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><version>3.2.0</version></dependency>2、配置#导入驱
  • 2024-08-31【阅己书城】逆向生成代码
    1、配置renren-generator#application.ymlserver:port:80#mysqlspring:datasource:type:com.alibaba.druid.pool.DruidDataSource#MySQL配置driverClassName:com.mysql.cj.jdbc.Driverurl:jdbc:mysql:///:3306/yueji_pms?useUnicode=true&
  • 2024-08-29【阅己书城】项目结构及表信息
    1、项目结构<name>yueji-parent</name><packaging>pom</packaging><modules><module>yueji-common</module><module>yueji-gateway</module><module>yueji-member</mod
  • 2024-08-28【阅己书城】配置git免密登录
    1、配置用户名gitconfig--globaluser.name"username"//(名字,随意写)2、配置邮箱gitconfig--globaluser.email"[email protected]"//注册账号时使用的邮箱3、配置ssh免密登录ssh-keygen-trsa-C"[email protected]"三次回车后生成了密钥,也可以查看密钥cat~/.ssh/id
  • 2024-08-28【阅己书城】docker搭建
    1卸载系统之前的dockersudoyumremovedockerdocker-clientdocker-client-latestdocker-commondocker-latestdocker-latest-logrotatedocker-logrotatedocker-engine2设置存储库sudoyuminstall-yyum-utilssudoyum-config-manager--add-repohttps:/