自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 收藏
  • 关注

原创 数据库修改用友U8账套

数据库修改用友U8账套适用于对数据库语句稍微有些了解的同学以下为自用Sql代码(自己按需修改)/*帐套修改步骤*//* 1.UfErpAct.Lst即备份文件修改 2.修改数据库UFSystem(系统文件,包括用户,数据源) 3.修改数据库UFDATA(用户文件,修改帐套内部信息) EL PSY CONGROO*//*帐套修改步骤*//*以下为UFSystem修改内容*/...

2019-10-14 22:05:59 6671 9

原创 后端-框架-SSM框架整合

1. 导入jar包commonsapache-log4j-1.2.17mysql-connector-java-5.1.46mybatis-3.4.6+mybatis-spring-1.3.2spring-framework-5.1.12. 配置文件(/rescources)web.xmldatabase.properties+log4j.propertiesmybatis...

2018-12-12 09:22:39 467

原创 后端-框架-Spring MVC-多视图解析器

业务要求通过Request所请求的格式进行Response的格式<beans> <!-- 多视图解析器 --> <bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"> <property name="favorParameter" va...

2018-12-04 17:32:00 176

原创 后端-框架-Spring MVC-JSON传送时间数据

解决方法1. 局部配置@DateTimeFormat(pattern="yyyy-MM-dd")@JSONField(format="yyyy-MM-dd")private Date birthday; //出生日期2.全局配置(仅使用与fastJson)修改FastJsonHttpDateFormat中features属性此时UserController下的方法应直接返回一个对...

2018-12-04 16:59:57 262

原创 后端-框架-Spring MVC-FastJSON对象中文乱码问题

问题出现原因StringHttpMessageConverter中默认编码格式为ISO-8859-1解决方法1. 灵活配置将请求报文头为application/json的charset修改同时value="/view.html"中去掉html以免响应的报文与请求的报文不一致@RequestMapping(value="/view",method=RequestM

2018-12-03 22:28:04 428

原创 后端-框架-Spring MVC-文件上传

接口MutipartResolver实现类CommonsMutipartResolver or StandardServletMutipartResolver步骤导入jar包commons-io-2.6.jarcommons-fileupload-1.3.3.jarspringmvc-servlet.xml#id必须严格按照multipartResolver编写,否则...

2018-11-29 11:10:47 214 1

原创 后端-框架-Spring MVC-REST风格

对比普通风格REST风格http://localhost:8080/SMBMS/user/view?id=11http://localhost:8080/SMBMS/user/view/11实现//UserController------------@RequestMapping(value="/view",method=RequestMethod.GET) p...

2018-11-27 18:58:51 120

原创 后端-框架-Spring MVC-Date类型转换失败

在Pojo中加入注释@DateTimeFormat(pattern="yyyy-MM-dd")private String userName;参考文档SpringMVC日期类型转换问题

2018-11-22 09:31:16 253

原创 后端-框架-Spring MVC-Hibernate验证

jar包hibernate-validator-4.3.2.Final.jarjboss-logging-3.1.0.CR2.jarvalidation-api-1.0.0.GA.jarpojo加入注释(具体查API)@NotEmpty(message=“用户名不能为空”)private String userName;@NotNull(message=“用户密码不能为空”)...

2018-11-22 09:11:18 146

原创 database.properties

#database.propertiesdriver=com.mysql.jdbc.Driverurl=jdbc:mysql://127.0.0.1:3306/mywebsite?useUnicode=true&characterEncoding=utf-8&useSSL=trueuser=Caediospassword=1234

2018-11-16 10:35:58 940

原创 log4j.properties

#log4j.propertieslog4j.rootLogger=DEBUG,CONSOLE,file#log4j.rootLogger=ERROR,ROLLING_FILElog4j.logger.cn.smbms.dao=debuglog4j.logger.com.ibatis=debug log4j.logger.com.ibatis.common.jdbc.SimpleData...

2018-11-16 10:31:45 152

原创 Media Encoder 动态链接

Media Encoder 动态链接适用情况安装好将ME移动至其他位置(注册表信息没有改变)由于注册表信息没有改变,默认会到注册表的安装位置寻找,因为移动,自然是找不到免安装版(没有注册表信息)没有注册表信息,默认到 “C:\Program Files\Adobe\Adobe Media Encoder CC 2018” 文件夹寻找解决方法Win+R打开cmd的管理员模式使用...

2018-11-15 13:17:57 5217

原创 Java-单例模式

单例模式1. 懒汉模式(当调用实例时,完成初始化)线程不安全延迟加载package cn.smbms.tools;import java.io.IOException;import java.io.InputStream;import java.util.Properties;public class ConfigManager { private static Prop...

2018-11-14 10:27:47 183

原创 后端-框架-Spring-Spring MVC参数传递(注解实现)

后端-框架-Spring-Spring MVC参数传递(注解实现)Spring MVC搭建@RequestMapping@RequestMappingtraitvalueURLmethodget or postparamsvairablespackage cn.smbms.controller;import org.apache.log4j.L...

2018-11-13 14:37:16 373 1

转载 PTA-Huffman Codes

Data Structures and Algorithms (English)7-9 Huffman Codes转载地址-所参考的作者#include<stdio.h>#include<algorithm>#include<queue>#include<string&am

2018-11-12 21:29:38 268

原创 后端-框架-Spring-Spring MVC环境搭建(注解实现)

后端-框架-Spring-Spring MVC环境搭建(注解实现)1. 导入相关包spring-web-5.1.1.RELEASE.jarspring-webmvc-5.1.1.RELEASE.jar2. 配置文件web.xml中配置Servlet<!-- 对于头文件去Tomcat中的例子找 --><!-- 对于其中配置去Spring的doc找 --&amp

2018-11-12 16:53:19 201

原创 后端-框架-Spring-Spring MVC环境搭建

后端-框架-Spring-Spring MVC环境搭建1. 导入相关包spring-web-5.1.1.RELEASE.jarspring-webmvc-5.1.1.RELEASE.jar2. 配置文件web.xml中配置Servlet<!-- 对于头文件去Tomcat中的例子找 --><!-- 对于其中配置去Spring的doc找 --><?...

2018-11-12 13:10:36 404

原创 后端-框架-Spring-MyBatis-Spring配置文件拆分

后端-框架-Spring-MyBatis-Spring配置文件拆分多个配置文件加载方法1//在引用时利用重载方法加载ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml","applicationContext-dao","applicationContext-web");多个配...

2018-11-11 15:06:22 202

原创 后端-框架-Spring-MyBatis-自动装配

后端-框架-Spring-MyBatis-自动装配bean标签下autowire属性autowirevalueno手动装配byName类名装配byType类型装配constructor构造器装配beans标签下default-autowire属性autowirevalueno手动装配byName类名装配b...

2018-11-11 14:50:15 274

原创 后端-框架-Spring-bean的作用域-未完成

后端-框架-Spring-bean的作用域scopeValuesingleton单例模式prototype每次创建新实例requestWeb环境,每次HTTP请求创建新实例sessionWeb环境,同一会话下单例模式...

2018-11-10 17:39:56 204

原创 后端-框架-Spring-dataSource配置

后端-框架-Spring-dataSource配置dbcp配置方式1(只适用于单个项目)在database.properties中#properties不需要对特殊符号转义jdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://127.0.0.1:3306/smbms?useUnicode=true&characterEnco...

2018-11-10 17:25:16 201

原创 后端-框架-Spring-MyBatis-事物增强

后端-框架-Spring-MyBatis-业务层添加声明事物<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"

2018-11-09 13:14:36 131

原创 后端-框架-Spring-MyBatis-注入映射器

后端-框架-Spring-MyBatis-注入映射器其中的配置文件 <!-- 数据源 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver.

2018-11-08 10:12:09 163

原创 PTA-Complete Binary Search Tree

Data Structures and Algorithms (English)7-7 Complete Binary Search Tree以下为自己写的版本,难过的是测试点5出现段错误??#include <stdio.h>#include <stdlib.h>#include <math.h>#define M

2018-11-07 23:01:07 243

转载 win10-远程登录

win10-远程登录-多用户教程链接cnblog多用户设置csdn外网设置

2018-11-07 18:35:50 245

原创 后端-框架-Spring-MyBatis

后端-框架-Spring-MyBatis-整合(未完待续)其中的配置文件 <bean id="DataSource" class="org.apache.commons.dbcp2.BasicDataSource"> <property name="driverClassName&a

2018-11-06 14:40:08 323

原创 后端-框架-Spring-AOP 事物增强

后端-框架-Spring-AOP-注解注入如果碰到代码无误,可能是JDK与aspectjweaver版本不匹配pointcut位置package cn.service;import cn.service.UserService;import javax.annotation.Resource;import org.springframework.beans.factory.ann...

2018-11-04 13:11:37 322

原创 后端-框架-Spring-IoC-注解注入-自动装配

后端-框架-Spring-IoC-注解注入@Service("UserDao")public class UserDaoImpl implements UserDao { public void save(User user) { System.out.println("保存用户信息到数据库&a

2018-11-03 09:27:44 166

原创 PTA-Tree Traversals Again

数据结构-图-C语言-PTA-Tree Traversals Again7-5 Tree Traversals Again#include <stdio.h>#include <string.h>#include <stack>using namespace std;#define Max 1000int pre[Max];int in[M...

2018-11-02 22:20:10 297

原创 PTA-Saving James Bond - Easy Version

数据结构-图-C语言-PTA-Saving James Bond - Easy Version以下为自己写的版本,难过的是测试点2无法通过#include <stdio.h>#include <math.h>#define MaxSize 100#define MinLength 42.5bool answer = false

2018-11-01 11:37:38 297

原创 后端-框架-Spring-IoC-多种类型注入

后端-框架-Spring-IoC-多种类型注入<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc...

2018-11-01 09:58:17 114

原创 后端-框架-Spring-IoC-p:命名

后端-框架-Spring-IoC-p:命名其他类public class User{ private Integer id; // 用户ID private String username; // 用户名 // getter & setter public Integer getId() { return id; } public void setId(Intege...

2018-11-01 09:32:35 142

原创 后端-框架-Spring-IoC-contructor-arg-构造注入

后端-框架-Spring-IoC-contructor-argpublic class UserServiceImpl implements UserService { // 声明接口类型的引用,和具体实现类解耦合 private UserDao dao; private String s1; private String s2; private int i1; public U...

2018-11-01 09:11:03 538

原创 数据结构-图-C语言-邻接矩阵-图的遍历

数据结构-图-C语言-邻接矩阵-图的遍历bool visited[999];void visit(Vertex V) { printf("正在访问顶点%d\n", V);}bool isEdge(MGraph graph, Vertex v, Vertex w) { return graph->G[v][w] > 0;}void BFS(Vertex start,...

2018-10-30 20:12:24 857

原创 数据结构-图-C语言-邻接表-图的遍历

数据结构-图-C语言-邻接表-图的遍历所需的结构typedef int Vertex;typedef int WeightType;typedef struct GNode *pGNode;struct GNode { int nv; int ne; AdjList g;};typedef pGNode LGraph;/*边*/typedef struct ENode ...

2018-10-30 17:12:07 942

原创 后端-框架-Spring-实现动态组装的打印机

后端-框架-Spring-实现动态组装的打印机主要告诉自己ref和value的区别ref为自己设置好的bean,直接引用value为bean中property中的值<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xml...

2018-10-30 15:28:02 783

原创 数据结构-图-C语言-邻接表

数据结构-图-C语言-邻接表#include <stdio.h>#include <stdlib.h>#define Max 100typedef int Vertex;typedef int WeightType;typedef struct GNode *pGNode;struct GNode { int nv; int ne; Ad

2018-10-29 21:42:44 349

原创 数据结构-树-C语言-HaffmanTree

数据结构-树-HaffmanTreetypedef struct TreeNode *pHaffmanTreestruct TreeNode{ int weight;//权重 pHaffmanTree left,right;//左右子树}pHaffmanTree createHaffmanTree(MinHeap heap){ int i; pHaffmanTree temp; ...

2018-10-29 20:31:56 134

原创 数据结构-树-C语言-堆

#include <stdio.h>#include <stdlib.h> typedef struct HeapStruct *pHeap;//pHeap为结构指针,指向这个结构struct HeapStruct

2018-10-29 20:28:40 126

原创 数据结构-图-C语言-邻接矩阵

数据结构-图-邻接矩阵正式写法#include <stdio.h>#include <stdlib.h>#define MaxVertexNum 50typedef int WeightType;typedef int Vertex;typedef int DataType;/*图*/typedef struct

2018-10-29 20:27:50 322

空空如也

空空如也

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

TA关注的人

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