From:一条被猫抛弃的他乡流浪狗!
摘要: #github140.82.112.3 github.com199.232.69.194 github.global.ssl.fastly.net # 打开CMD运行如下命令ipconfig /flushdns 阅读全文
posted @ 2021-08-21 15:55 ICE_Inspire 阅读(30) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-06-02 00:59 ICE_Inspire 阅读(0) 评论(0) 推荐(0) 编辑
摘要: Mybatis + Mysql 插入数据时中文乱码问题 MySQL- 5..7.24-winx64 安装详解 阅读全文
posted @ 2018-10-16 23:57 ICE_Inspire 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1.web.xml配置如下 关键是41-52行 2.控制器controller 要有对应的 @RequestMapping("/index") 即可. 3.如何直接通过域名访问 如果要发布到服务器,不带项目名访问,把项目打包成ROOT.war,放到webapps下即可. ROOT里面直接是资源文件和 阅读全文
posted @ 2018-10-16 22:43 ICE_Inspire 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: 1.Mybatis-Generator下载 地址:https://github.com/mybatis/generator/releases 我使用的是 mybatis-generator-core-1.3.7 2.配置generatorConfig.xml 官网: http://www.mybat 阅读全文
posted @ 2018-10-05 13:54 ICE_Inspire 阅读(377) 评论(0) 推荐(1) 编辑
摘要: 1.引入依赖 2.在springmvc-config.xml增加mybatis配置 3.在classpath:mapper/ 创建CustomerMapper.xml 注意创建的位置,是在上面设置的 mapperLocations. 4.创建CustomerMapper.xml对应的Customer 阅读全文
posted @ 2018-10-05 12:28 ICE_Inspire 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 核心是让SessionFactory由Spring管理 1.引入依赖 2.配置 springmvc-config.xml 重点是 dataSource和sessionFactory. 3.建立 *.hbm.xml和实体类Customer mapping:Customer.hbm.xml,model: 阅读全文
posted @ 2018-10-04 11:33 ICE_Inspire 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 前提:已搭建好环境 1.建立Controller 访问后报错,如下 Type Exception ReportMessage No converter found for return value of type: class com.ice.model.PersonDescription The 阅读全文
posted @ 2018-10-01 12:28 ICE_Inspire 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 1.建立project / module 新建空的project:springMvcStudy 新建module:type maven-webapp,名字mvcStudy 2.为module设置Sources和Resources 在mvcStudy/src/main下新建2个文件夹:java,res 阅读全文
posted @ 2018-10-01 11:59 ICE_Inspire 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1.导包(略) 2.applicationContext.xml如下: 3.@Component 写法一: User类 main方法: 写法二: User类 main方法: 4.其他注解 @Repository@Service@Controller 这三个注解跟Component一个效果@Scope 阅读全文
posted @ 2018-09-29 22:28 ICE_Inspire 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 文档: https://docs.spring.io/spring/docs/5.0.9.RELEASE/spring-framework-reference/core.html#beans-factory-metadata 包下载的位置 http://repo.spring.io/release/ 阅读全文
posted @ 2018-09-28 22:50 ICE_Inspire 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1.如何设置,使IntelliJ IDEA智能提示忽略大小写 打开设置(CTRL+ALT+S)搜索editor,找到“Code Completion”->点击Case sensitive completion后面的选择框,选中None,然后一路确定即可。 2.在pom里修改 3.解决schema的问 阅读全文
posted @ 2018-09-28 22:44 ICE_Inspire 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 过程,函数,触发器是PL/SQL编写的,存储在oracle中的.PL/SQL是非常强大的数据库过程语言. PL/SQL优点:性能,模块化,网络传输量,安全性缺点:移植性不好 简单分类:块:过程,函数,触发器,包 Demo:create or replace procedure sp01 isbegi 阅读全文
posted @ 2018-07-27 23:37 ICE_Inspire 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 支持的数据类型: 字符型char 定长 最大2000varchar2() 变长 最大4000clob 字符型大对象 最大4G 数字型number范围 -10的38次方到10的+38次方;number(5,2) 一个小数,有效位5个,小数点后2个数字number(5) 表示一个5位的整数 日期类型da 阅读全文
posted @ 2018-07-12 00:13 ICE_Inspire 阅读(384) 评论(0) 推荐(0) 编辑
摘要: SQL> conn /as sysdbaConnected to Oracle Database 11g Express Edition Release 11.2.0.2.0 Connected as scott AS SYSDBA 1)创建用户使用scott,dba 登录SQL> create u 阅读全文
posted @ 2018-07-09 01:01 ICE_Inspire 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 该系列是向 韩顺平 老师学习的笔记 高级权限账号:scott pwd sysdba 新建一个 Command Window,也可以 开始,运行 sqlplus 连接命令 --1.0 切换账号 SQL> show user;User is "SYS"--conn 账号/密码SQL> conn syst 阅读全文
posted @ 2018-07-09 01:00 ICE_Inspire 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 环境:数据库:mariadb 10.2.16 https://downloads.mariadb.org/配置好maven:见收藏的博文链接 https://www.cnblogs.com/ICE_Inspire/p/9250194.html 官方文档:http://docs.jboss.org/h 阅读全文
posted @ 2018-07-08 21:22 ICE_Inspire 阅读(861) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-08 21:14 ICE_Inspire 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 第一种方法:javascript控制。缺点,一般用户使用没问题,但是懂点js的还是可以强行重复提交。而且,后退再提交,你也没啥办法。 第二种方法:服务器控制。 后台生成一个token,存入session或者其他缓存里面。渲染表单时,给form一个隐藏的token(令牌). 用户提交表单时: 先判断表 阅读全文
posted @ 2017-01-03 23:48 ICE_Inspire 阅读(644) 评论(0) 推荐(2) 编辑
摘要: 1.DbContext怎么在Asp.mvc中使用? 这么定义之后,所有需要用到DbContext对象的地方,都调这个方法。 2. 不要随便using或Dispose DbContext会导致延迟加载的不可用,还会有一些其他错误 如IQueryable<T> 下面的方法(.First() /.Coun 阅读全文
posted @ 2016-12-11 10:16 ICE_Inspire 阅读(6044) 评论(58) 推荐(12) 编辑