<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wsfhdhjs的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/wsfhdhjs</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; wsfhdhjs]]></copyright><item><title><![CDATA[面试可能问的问题3]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/122917883</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/122917883</guid><author>wsfhdhjs</author><pubDate>Mon, 14 Feb 2022 09:38:14 +0800</pubDate><description><![CDATA[1.读写分离
1.读写分离的前提是，mysql做了主从，也就是一主多从或者多主多从的结构
为什么要做读写分离？
1.应用的第一个瓶颈一定是在数据库（磁盘上的读写速度是最慢的）
2.写操作会加锁，也就是在进行读操作时必须等写操作完成之后再进行，加大的拖累了程序的运行速度
3.基本上所有的应用都是读多写少
2.MYSQL主从复制原理
mysql主从复制的基础是bin-log日志，slave通过一个I/O线程与主服务器保持通信，并监控master的二进制日志文件的变化，如果发现master二进制日志发生变化，则会]]></description><category></category></item><item><title><![CDATA[面试可能问的问题2---新闻列表]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/122895036</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/122895036</guid><author>wsfhdhjs</author><pubDate>Sat, 12 Feb 2022 12:44:26 +0800</pubDate><description><![CDATA[步骤分析
1.首页列表实现，每一个标签只显示5条最新的数据，查询条件中根据标签查询，每次切换标签都访问一个接口
2.列表查询sql语句，只查询题目以及id，提高查询性能
3.查询出结果后，放入redis缓存中，设置2分钟的过期时间，加快访问速度的同时也可以防止出现集中访问的情况，应对短暂的热点现象
4.文章详情，根据id查询文章的详细信息，同样放入缓存中，考虑到文章内容过大，设计30s的过期时间，后期如果出现访问激增的情况，考虑放入es中
5.列表详情页面，分页查询，同样放入缓存，sql语句只查询需要的信息]]></description><category></category></item><item><title><![CDATA[面试可能问的东西1]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/122882651</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/122882651</guid><author>wsfhdhjs</author><pubDate>Fri, 11 Feb 2022 16:31:50 +0800</pubDate><description><![CDATA[1.介绍下sso




这里有个优化策略，就是每次去系统A或者系统B，他们验证都需要去sso认证中心进行认证，浪费网络资源，如果能够生成一个系统A的tocken或者系统B的tocken则就不用每次去sso认证中心进行认证
2.介绍下jwt技术：
1.jwt技术生成一个加密的tocken，作为用户登陆的令牌，当用户登陆成功后，发送给客户端，请求需要登陆的资源或者接口，需要携带tocken，通过后端进行验证tocken是否合法
2.jwt有3部分组成：1.指定签名，固定好的{‘type’:‘JWT’,‘alg]]></description><category></category></item><item><title><![CDATA[java基础--反射机制]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/122050113</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/122050113</guid><author>wsfhdhjs</author><pubDate>Mon, 20 Dec 2021 20:50:51 +0800</pubDate><description><![CDATA[例子1
Person
package com.atguigu.java3;

/**
 * @author shkstart
 * @create 2021-12-{DAY} 20:06
 */
public class Person {

    private String name;
    public int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name ]]></description><category></category></item><item><title><![CDATA[java基础--IO流]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121998208</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121998208</guid><author>wsfhdhjs</author><pubDate>Fri, 17 Dec 2021 15:50:11 +0800</pubDate><description><![CDATA[例子1
package com.atguigu.java3;

import org.junit.Test;

import java.io.File;

/**
 * @author shkstart
 * @create 2021-12-{DAY} 21:27
 */
public class FileTest {

    @Test
    public void test1(){

        //构造器1
        File file1 = new File("hello.txt");]]></description><category></category></item><item><title><![CDATA[java基础--泛型]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121959164</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121959164</guid><author>wsfhdhjs</author><pubDate>Wed, 15 Dec 2021 18:51:01 +0800</pubDate><description><![CDATA[/**
 * @author shkstart
 * @create 2021-12-{DAY} 18:23
 */
public class GenericTest {

    //在集合中使用泛型之前的情况
    @Test
    public void test1(){
        ArrayList list = new ArrayList]]></description><category></category></item><item><title><![CDATA[jdbc学习]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121656030</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121656030</guid><author>wsfhdhjs</author><pubDate>Wed, 01 Dec 2021 15:15:02 +0800</pubDate><description><![CDATA[1.连接数据库
package com.atguigu.java;

import org.junit.Test;

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

/**
 * @author shkstart
 * @create 2021-12-{DAY} 14:48]]></description><category></category></item><item><title><![CDATA[面向对象下]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121480830</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121480830</guid><author>wsfhdhjs</author><pubDate>Mon, 22 Nov 2021 21:14:25 +0800</pubDate><description><![CDATA[例子1
package com.atguigu.java3;

/**
 * @author shkstart
 * @create 2021-11-{DAY} 20:51
 */
public class StaticTest {
    public static void main(String[] args) {

        Chinese c1 = new Chinese();
        c1.name="马云";
        c1.age=40;

        Chinese]]></description><category></category></item><item><title><![CDATA[面向对象中]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121363429</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121363429</guid><author>wsfhdhjs</author><pubDate>Tue, 16 Nov 2021 19:39:08 +0800</pubDate><description><![CDATA[例子1
Person类
package com.atguigu.java1;

/**
 * @author shkstart
 * @create 2021-11-{DAY} 19:38
 */
public class Person {
    String name;
    int age;

    public Person(){

    }

    public Person(String name,int age){
        this.name=name;
        thi]]></description><category></category></item><item><title><![CDATA[java基础--面向对象（上）]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121342676</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121342676</guid><author>wsfhdhjs</author><pubDate>Mon, 15 Nov 2021 20:29:14 +0800</pubDate><description><![CDATA[例子1
package com.atguigu.java;

/**
 * @author shkstart
 * @create 2021-11-{DAY} 20:19
 */
public class InstanceTest {
    public static void main(String[] args) {
        Phone p = new Phone();

        p.sendEmail();
        p.playGame();

        //匿名对象,]]></description><category></category></item><item><title><![CDATA[MySQL笔记]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121338059</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121338059</guid><author>wsfhdhjs</author><pubDate>Mon, 15 Nov 2021 16:48:37 +0800</pubDate><description><![CDATA[@@

]]></description><category></category></item><item><title><![CDATA[java集合]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121109764</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121109764</guid><author>wsfhdhjs</author><pubDate>Tue, 02 Nov 2021 21:29:53 +0800</pubDate><description><![CDATA[例子1

]]></description><category></category></item><item><title><![CDATA[java-枚举类]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121106156</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121106156</guid><author>wsfhdhjs</author><pubDate>Tue, 02 Nov 2021 18:24:19 +0800</pubDate><description><![CDATA[例子1

]]></description><category></category></item><item><title><![CDATA[java基础--常用类]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/121020696</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/121020696</guid><author>wsfhdhjs</author><pubDate>Thu, 28 Oct 2021 19:02:47 +0800</pubDate><description><![CDATA[例子1
package com.atguigu.java;

import org.junit.Test;

/**
 * String的使用
 * @author shkstart
 * @create 2021-10-{DAY} 18:31
 */
public class StringTest {

    /*
    String:字符串，使用一对""引起来表示

     */
    @Test
    public void test1(){
        String s1 = "abc]]></description><category></category></item><item><title><![CDATA[java基础---多线程]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120958126</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120958126</guid><author>wsfhdhjs</author><pubDate>Mon, 25 Oct 2021 19:13:51 +0800</pubDate><description><![CDATA[例子1
package com.atguigu.java;

/**
 * @author shkstart
 * @create 2021-10-{DAY} 18:02
 */

//1.创建一个继承于Thread类的子类
    class MyThread extends Thread {

    //2.2.重写Thread类的run()方法
    @Override
    public void run() {
        for (int i = 0; i &lt; 100; i++)]]></description><category></category></item><item><title><![CDATA[java异常处理]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120870733</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120870733</guid><author>wsfhdhjs</author><pubDate>Wed, 20 Oct 2021 17:23:40 +0800</pubDate><description><![CDATA[例子1
/**
 * 
 */
package com.atguigu.java;

/**
 * @Descripton
 * @author wsf  Email:2181821498@qq.com
 * @version
 * @date 2021年10月20日下午5:19:46
 *
 */
public class ErrorTest {
	public static void main(String[] args) {
		//1.栈溢出 java.lang.StackOverflowError]]></description><category></category></item><item><title><![CDATA[java内部类]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120854867</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120854867</guid><author>wsfhdhjs</author><pubDate>Tue, 19 Oct 2021 21:16:34 +0800</pubDate><description><![CDATA[例子1：成员内部类和局部内类
/**
 * 
 */
package com.atguigu.java2;

/*
 * 
 * 
 *
 */
public class InterClassTest {
	
}

class Person{
	
	//静态成员内部类
	static class Dog{
		String name;
		int age;
		
		public void show(){
			System.out.println("卡拉是条狗");
		}
	}
	
	//非静态成员内部]]></description><category></category></item><item><title><![CDATA[java接口interface]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120850370</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120850370</guid><author>wsfhdhjs</author><pubDate>Tue, 19 Oct 2021 17:12:35 +0800</pubDate><description><![CDATA[/**
 * 
 */
package com.atguigu.java1;

/**
 * @Descripton
 * @author wsf  Email:2181821498@qq.com
 * @version
 * @date 2021年10月19日下午5:02:07
 *
 */
public class InterfaceTest {
	public static void main(String[] args) {
		System.out.println(Flyable.MAX_SPEE]]></description><category></category></item><item><title><![CDATA[askldjf]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120802483</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120802483</guid><author>wsfhdhjs</author><pubDate>Sat, 16 Oct 2021 19:00:53 +0800</pubDate><description><![CDATA[/**
 * 
 */
package com.atguigu.java;

/*
 * 
 * 
 *
 */
public class AbstractTest {
	public static void main(String[] args) {
		
		//一旦Person类抽象了，就不可实例化
		Person p1 = new Person();
		
		p1.eat();
		
	}
}


abstract class Person{
	String name;
	int age;
	
]]></description><category></category></item><item><title><![CDATA[pat-高精度]]></title><link>https://blog.csdn.net/wsfhdhjs/article/details/120326268</link><guid>https://blog.csdn.net/wsfhdhjs/article/details/120326268</guid><author>wsfhdhjs</author><pubDate>Thu, 16 Sep 2021 12:06:13 +0800</pubDate><description><![CDATA[A+B for Polynomials
这道题就是有个坑是对于多项式，如果底数为0，则不需要输出
#include&lt;bits/stdc++.h&gt;
using namespace std;

int main()
{
    map&lt;int,double&gt; mp;
    vector&lt;pair&lt;int,double&gt;&gt; res;
    int n,m;
    cin &gt;&gt; n;
    for(int i=0; i&lt;n; i++)
   ]]></description><category></category></item></channel></rss>