/**<!--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
AlterDialog:确认取消警告提示框 public void showAlertDialog(View view){ AlertDialog.Builder dialog = new AlertDialog.Builder(MainActivity.this); dialog.setTitle ...
分类:
移动开发 时间:
2021-01-08 11:26:55
阅读次数:
0
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ ...
分类:
其他好文 时间:
2021-01-05 11:33:51
阅读次数:
0
ifcFillerEastyleHatching用于基于样式化直线定义简单的基于矢量的图案填充模式。曲线字体、颜色和厚度由HatchLineAppearance给出,角度由HatchLineAngle给出,距离由StartOfNextHatchLine给出,可以是偏移距离,也可以是向量。 注:根据I ...
分类:
其他好文 时间:
2021-01-05 10:46:38
阅读次数:
0
JAVA:/* * * 1:定义一个继承Thread的类,里面定义run函数为需要多线程的业务函数 * 2:实例化重写的这个类,执行start方法进行多线程运行 * * */ class MyThread extends Thread{ // 多线程 需要执行的方法 @Override public ...
分类:
编程语言 时间:
2021-01-02 10:54:28
阅读次数:
0