spring data redis 序列化有jdk .jackson.string 等几种类型,自带的jackson不熟悉怎么使用,于是用string类型序列化,把对象先用工具类转成string,代码如下: application.xml中配置 <bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory&qu
Referencing v3 packages in New Projects If you want a new project to use ServiceStack's v3 packages then you need to specify the version number when installing via NuGet, e.g: All v3 packages can be installed the same way, e.g install ServiceStack.Te
通过全局异常类,所有程序中遇到的错误都会被拦截,并友好的返回结果. 1.自定义一个全局异常处理类中间件 using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using Syst
1.创建userinfo.sql数据库脚本 create table USERINFO ( id NUMBER not null, uname ), password ), age NUMBER ) ; alter table USERINFO add primary key (ID); create sequence seq_userinfo; insert into USERINFO (id, uname, password, age) ); insert into USERINFO (id