songys 发布的文章

检查wuaueng.dll的版本,修改日期要为2017年10月14日,如果是更老的版本,手动下载安装KB4054519补丁。

https://www.catalog.update.microsoft.com/Search.aspx?q=KB4054519

按住Windows 键+R键打开运行,在输入框内中输入services.msc,并按下回车。

双击打开“Windows Update”服务。

然后单击“停止”,关闭该服务,再将启动类型改为“手动”

然后重命名C:\Windows\SoftwareDistribution文件夹为其他名称 。

重命名完成后,重启电脑,重新启用Windows Update服务再尝试检查更新和安装。

激活:
按下windows+x打开快捷菜单,选择命令提示符(管理员)

slmgr /ipk D2N9P-3P6X9-2R39C-7RTCD-MDVJX

slmgr /skms kms.03k.org

slmgr /ato

frps安装命令

mv frps /usr/bin
chmod +x /usr/bin/frps

mv frps.service /etc/systemd/system/

mkdir /etc/frp/
mv frps.ini /etc/frp/

systemctl start frps
systemctl enable frps
systemctl status frps

frpc安装命令

mv frpc /usr/bin/
chmod 777 /usr/bin/frpc

mv frpc.service /etc/systemd/system/

mkdir /etc/frp/
mv frpc.ini /etc/frp/

systemctl stop frpc
systemctl start frpc
systemctl enable frpc
systemctl status frpc

简易的git命令行入门教程:
Git 全局设置:
git config --global user.name "your name"
git config --global user.email "your email"

创建 git 仓库:
mkdir xxxx_front
cd xxxx_front
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/neosongss/xxxx_front.git
git push -u origin "master"
已有仓库?

cd xxxx_front
git remote add origin https://gitee.com/neosongss/xxxx_front.git
git push -u origin "master"

1、pom.xml修改如下:

<plugins>
    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <mainClass>com.App</mainClass>
            <layout>ZIP</layout>
            <includes>
                <include>
                    <groupId>nothing</groupId>
                    <artifactId>nothing</artifactId>
                </include>
            </includes>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>repackage</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
<plugins>


2、然后获得分离出来的lib
mvn dependency:copy-dependencies -DoutputDirectory=F:\lib -DincludeScope=runtime

3、运行java
java -Dloader.path=/path/to/lib -jar /path/to/springboot-0.0.1-SNAPSHOT.jar

1、请求

axios.post('/controller/login.php', {

    username: this.form.username,
    password: this.form.password
 })
 .then(function (response) {
    console.log(response);
 })
 .catch(function (error) {

 });

2、使用下边的方式接收参数,不生效,接收到的为空
<?php
public function process(): void
{
$username = $_POST['username']; // does not work
}

3、解决方法,使用php://input

public function process(): void
{

$request_body = file_get_contents('php://input');
$data = json_decode($request_body, true);

$username = $data['username']; // Works!

}

参考手册:https://zerowp.com/sending-axios-parameters-with-a-post-request-in-php/

或者采用URLSearchParams,如下:
const params = new URLSearchParams();
params.append('title', this.queryForm.title);
params.append('solution', this.queryForm.solution);
params.append('content', this.queryForm.content);
params.append('eventNo', this.queryForm.eventNo);
params.append('pageNo', pageNo);

params.append('selectProductIds', selectProductIds);
this.loadingList = true;
axios({

url: '/queryPage',
method: 'POST',
headers: {'Content-type': 'application/x-www-form-urlencoded'},
data: params

})

.then(function (response) {
    if (response.data.code === 0) {
        that.tableData = response.data.data.records;
        that.total = response.data.data.total;

    } else {
        that.$message({type: 'error', message: response.data.msg});
        that.tableData = [];
    }
    that.loadingList = false;
})
.catch(function (error) {
    that.loadingList = false;
    that.$message("获取数据失败" + error);
});