https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0 "Logging": { "MinimumLevel": { "Default": "Debug", "Override": ...
分类:
其他好文 时间:
2021-01-25 11:03:58
阅读次数:
0
package demo01; //静态代理,真实对象和代理对象都要实现同一个接口 public class StacticProxy { public static void main(String[] args) { You you=new You(); new Thread(()-> Syst ...
分类:
其他好文 时间:
2021-01-25 10:57:46
阅读次数:
0
1.查看spring security,发现会自动创建多个对象。此时需要通过排序来进行,将自己设置的配置文件提前初始化来满足 @EnableWebSecurity @Order(1) //排序来处理这样的问题。但是没有治本,需要查看为什么要初始化多个对象... public class Securi ...
分类:
编程语言 时间:
2021-01-25 10:52:22
阅读次数:
0
用户信息存储 /** * 通过重载,配置user-detail服务<!--more--> * @param auth * @throws Exception */ @Override protected void configure(AuthenticationManagerBuilder auth ...
分类:
其他好文 时间:
2021-01-21 11:00:48
阅读次数:
0
/**<!--more--> * 通过重载,配置如果通过拦截器保护请求 * @param http * @throws Exception */ @Override protected void configure(HttpSecurity http) throws Exception {// su ...
分类:
其他好文 时间:
2021-01-21 11:00:01
阅读次数:
0
两种做法 修改Appcation.java文件 package com.techny.lianmai; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.S ...
分类:
编程语言 时间:
2021-01-20 12:07:41
阅读次数:
0
Java-多线程-伴随线程 setDaemon方法可以将子线程设置为主线程的伴随线程 意思就是当主线程运行结束之后,不管子线程是否运行完毕,都直接将子线程强制结束掉 示例: public class TestThread implements Runnable{ @Override public v ...
分类:
编程语言 时间:
2021-01-18 11:42:32
阅读次数:
0
什么是MVC 最典型的MVC就是JSP+servlet+JavaBean的模式 Spring-web SpringMVC public class MyServlet extends HttpServlet{ @Override protected void doPost(HttpServletRe ...
分类:
编程语言 时间:
2021-01-15 12:11:07
阅读次数:
0
自定义负载均衡 IRule接口介绍 com.netflix.loadbalancer.IRule 是自定义负载均衡的算法实现类 源码 /** * Interface that defines a "Rule" for a LoadBalancer. A Rule can be thought of ...
分类:
编程语言 时间:
2021-01-12 11:20:12
阅读次数:
0
代码 @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 获取要下载的文件的绝对路径 St ...
分类:
其他好文 时间:
2021-01-11 11:22:30
阅读次数:
0