自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (1)
  • 收藏
  • 关注

原创 PXE 搭建过程记录(Centos7)

1、配置静态IP[root@localhost ~]# more /etc/sysconfig/network-scripts/ifcfg-ens33TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=staticDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL

2021-10-15 10:40:16 565

转载 候选码、主码、外码、主属性、主键、主关键字、非主属性

学习https://blog.csdn.net/sumaliqinghua/article/details/85872446

2019-09-10 22:12:01 1464

原创 Adeline学习之jpa EntityManager进行持久化的操作方法

1,find(Class<T> entityClass,Object primaryKey):查询操作,在执行查询时就被EntityManager执行       参数  :返回对应的实体类,待查实体的主键值 2,getReference (Class<T> entityClass,Object primaryKey):与find方法相似,不同的是该方法只有在使...

2018-12-06 14:03:12 307

原创 Adeline学习之jpa注解

@Id        用于属性前  或者属性的getter方法前      标注用当前属性映射为数据库的主键列@Column    该属性通常置于实体的属性声明语句之前,还可与 @Id 标注一起使用。标注的常用属性是 name,用于设置映射数据库表的列名。@Entity  用于实体类声明语句之前  标注当前的类是实体类  将映射到指定的数据库表@Table  用于实体类声明语句之前  ...

2018-12-06 14:00:26 189

原创 Adeline学习Java之序列化和反序列化

1 . 何为序列化  序列化:将对象转化为字节序列的过程(    ObjectOutputStream)2 . 何为反序列化  反序列化:将字节序列转化为对象的过程(    ObjectInputStream)3.为什么要序列化  (1)需要将数据在网络上传输、需要将数据共享的对象  进行持久化  (2)对象需要持久化在本地磁盘中,将长时间不活动的对象持久化到磁盘,当在服务...

2018-11-29 15:16:57 154

转载 Redis(String,Set,Sorted Set,List,Hash)在springboot中的使用

Redis在springboot中的使用 1. 在application.properties配置#redisspring.redis.host=localhostspring.redis.port=6379#spring.redis.password=spring.redis.database=1spring.redis.pool.max-active=8s...

2018-09-08 21:01:25 1602

原创 springboot初始学习笔记3之@Value和多环境配置

springboot初始学习笔记3之@Value和多环境配置 1.@Value自定义参数1.1在application.properties文件中配置stuName=adeline 1.2.在controller层定义一个参数并注解 @Value("${stuName}")private String stuName; 1.3.调用参数 @...

2018-08-29 09:06:46 1028

原创 spring的简单前置增强

1.1.1在xml中开启aspectj的功能的支持。 <aop:aspectj-autoproxy/> 启用aspectj支持1.2在.xml文件中配置 扫描包的<context:component-scan base- package="com.yc.aop_xml_annotation" />2 声明切面 : 在切面的对象中加入 @...

2018-08-29 08:44:53 974

原创 启动springCloud服务报错The port may already be in use or the connector may be misconfigured.

tomcat 8080端口被占用1、进入cmd  输入 netstat -ano  然后查到8080端口是否在使用中或者直接使用  netstat -ano|findstr 8080 查到8080端口是否使用 使用 netstat -ano 查到对应的进程号为4276同理,使用netstat -ano|findstr 8080 可以直接查到 3.查到端口...

2018-08-25 09:18:49 18387 3

原创 springboot初始学习笔记2之@Async

springboot初始学习笔记2之@Async 1、@Async 异步执行方法:异步调用则是只是发送了调用的指令,调用者无需等待被调用的方法完全执行完毕;而是继续执行下面的流程。同步就是整个处理过程顺序执行,当各个过程都执行完毕,并返回结果。在执行@Async 所标注的方法时,会将被注解的方法独立的启动一个线程来执行,主程序无需等待该被@Async 注解的方法的完成。举例:1...

2018-08-18 21:09:50 232

原创 在eclipse中安装Lombok

1下载  :路径https://projectlombok.org/download                              2.下载完成后,双击lombok.jar  3.确认eclipse的安装路径后点击Install/update按钮。安装完成4.安装完成后,在eclipse下会有一个lombok.jar 。我们点击打开该目录下的eclips...

2018-08-13 16:20:50 230 1

原创 springboot整合jsp(跳转jsp页面)

springboot整合jsp(跳转jsp页面)1.pom.xml文件的配置(springboot内置tomcat不支持jsp页面,所以要引入外部tomcat的jar包)<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-sta...

2018-08-13 16:14:11 917

原创 springboot初始学习笔记1

springboot初始学习笔记1 1.@EnableAutoConfiguration 在@controller的注解的类上加此注解的作用:自动配置启动,扫包范围默认在当前类里面 2. public static void main(String[] args) {SpringApplication.run(Application.class, args);}整个...

2018-08-13 16:10:25 121

原创 springboot的简单配置helloworld

springboot的简单配置helloworld 1.pom.xml的配置(加入几个常用和必须用的jar包) <parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId&gt...

2018-08-12 14:03:43 146

原创 Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for c

java.lang.IllegalStateException: Failed to load ApplicationContextat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate....

2018-08-12 11:51:07 1892

原创 mybatis报错元素类型为 "resultMap" 的内容必须匹配 "(constructor?,id*,result*,association*,collection*,discriminator

java.lang.IllegalStateException: Failed to load ApplicationContextat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate....

2018-08-12 11:19:10 722

原创 Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not

org.springframework.dao.TransientDataAccessResourceException:### Error updating database. Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed...

2018-08-12 11:14:42 2312

原创 java.lang.IllegalStateException: Cannot forward after response has been committed

Servlet.service() for servlet [SpringMVC] in context with path [/springmvc_07_RentingHouse] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot forw...

2018-08-12 11:10:56 1877

原创 javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>

javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in &lt;forEach&gt; 解决:&lt;c:forEach items="${jsonModel}" var="v"&gt; 遍历的对象是一个对象而不是集合改为&lt;c:forEach items="${.

2018-08-12 10:52:44 620

原创 SpringMVC+mybatis+spring框架的基本配置

SpringMVC+mybatis+spring框架的基本配置 1.配置web.xml &lt;servlet&gt;&lt;servlet-name&gt;springmvc&lt;/servlet-name&gt;&lt;!-- 前端控制器 --&gt;&lt;servlet-class&gt;org.springframework.web.servlet.Dispa...

2018-08-04 11:31:09 198

原创 oracle和mysql在mybatis下批量插入数据和用自增长序列插入

oracle和mysql在mybatis下批量插入数据和用自增长序列插入数据的区别 1、自增长序列插入oracle:&lt;insert id="add" parameterType="Favorite" &gt;          &lt;selectKey keyProperty="fid" resultType="int" order="BEFORE"&amp

2018-08-01 16:12:21 1473

原创 springmvc报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found

 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.    解决:头的引入顺序混乱将http://www.springframework.org/schema/tx的位置移动到...

2018-07-31 15:01:28 1082

原创 springmvc报错:java.lang.NoSuchMethodError: org.springframework.context.support.AbstractApplicationCont

java.lang.NoSuchMethodError: org.springframework.context.support.AbstractApplicationContext.clearResourceCaches()V at org.springframework.context.support.AbstractApplicationContext.finishRefresh(Abstr...

2018-07-31 14:55:09 3118 2

原创 spring 报错:Error creating bean with name 'dataSource' defined in class path resource [bean.xml] Cause

 Error creating bean with name 'dataSource' defined in class path resource [bean.xml]Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.yc.biz.impl [Xlint:inva...

2018-07-31 14:53:31 1842

原创 DI的注入方式

DI注入1.构造方法注入在xml文件中配置1.1&lt;constructor-arg /&gt;表示法&lt;bean id="person" class="com.yc.bean.Person"&gt;&lt;constructor-arg type="String" value="bobo" /&gt;&lt;constructor-arg t

2018-07-29 11:35:39 1646

原创 spring项目基本的xml配置

1.加入jar包 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency&...

2018-07-26 18:47:11 314

原创 使用SWT导入vlcj实现音乐播放器

Vlcj安装及在SWT中调用实现播放器(参考网上的资料自己总结的,希望对大家有用) 1.安装VLC播放器  (win7 -64位)下载VLC网址 :http://www.videolan.org/下载vlcj:http://capricasoftware.co.uk/#/projects/vlcj 2.所需jar包: 3.环境配置:在VLC的安装目录: 

2018-01-10 17:19:01 1983

原创 在web项目页面中导入CKeditor

在web的 HTML页面中 加入CKeditor编辑器 1.  在CKeditor官网中下载jar包  解压 复制到项目下 将ckeditor.js 导入HTML页面中. script src="ckeditor/ckeditor.js">script>根据自己的目录导入2. 在HTML页面的body中 ,必须在textarea下使用CKeditorbo

2018-01-10 16:52:23 1029

原创 DOM删除和添加节点

DOM删除和添加节点删除 : 如果要在JavaScript中将一个节点删除,就需要用到DOM。利用DOM来删除一个节点,不能直接删除,需要得到该节点的父节点,再通过父节点将该加点删除。如:body>  divid="div1">abc div>script>var div= document.getElementById("div1"); //得到该节点

2017-09-01 11:22:35 413

原创 jQuery的下载和使用

jQuer的下载和引用 jQuery的下载和使用 1.下载 ,在浏览器中输入jQuery,找到jQuery的官网 · https://jquery.com/  ,找到download  下载适合自己的版本,本次下载的是jQuery Core 1.11.1· jQuery 会显示当前最新的几个版本,所以,想下载之前的版本,需将网页拉到最底下 · 找到 pa...

2017-08-31 19:10:01 29442 11

原创 HTML5 canvas 画布的建立和描绘一些基本样式

HTML5 canvas 画布的建立和描绘一些基本样式

2017-08-30 10:49:17 899 2

SpringCloud学习之服务注册与发现

该文件分为三个部分,Eureka Server为主服务,Client1和client2分别为server下的子 服务,client2又调用client1的服务,实现服务间的调用。

2018-09-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除