软件工程学习记录

Felix/蔡济阳 个人博客

启动类上面的注解是@SpringBootApplication,它也是 Spring Boot 的核心注解,主要组合包含了以下 3 个注解:

@SpringBootConfiguration:组合了 @Configuration 注解,实现配置文件的功能。

@EnableAutoConfiguration:打开自动配置的功能,也可以关闭某个自动配置的选项,如关闭数据源自动配置功能: @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })。

@ComponentScan:Spring组件扫描。

阅读全文 »

AndroidStudio插件报错解决办法。

Android Studio 4.1及以后,老的插件会不支持,导致启动后会弹出插件错误

1
Plugin Error: Plugin xxx is incompatible (supported only in IntelliJ IDEA).

解决方法:

在本地目录:C:/Users/Admin/AppData/Roaming/Google/AndroidStudio4.1/plugins (// Admin换成自己的电脑用户名)下删除对应插件,重启编译器。

:fleur_de_lis: typedef ,结构体,结构体的标签等问题,一文说明。文中用代码示例说明了typedef和结构体在实际中的应用。

阅读全文 »

Gredle 下载地址、解压后文件含义

Gradle各版本下载地址:http://services.gradle.org/distributions/

下载 all 结尾文件

解压后的目录含义:

名称 含义
docs API、DSL、指南等文档
init.d gradle的初始化脚本目录
lib 相关库
LICENSE 协议
src 源码
NOTICE 提示文件
README Gradle描述

:fleur_de_lis: 数据库自增字段恢复为 1 的两种方法

方法一(会删除既存数据)

1
TRUNCATE TABLE 表名;

方法二

1
ALTER TABLE 表名 AUTO_INCREMENT = 1; 
  • 设置的值不能小于等于当前的自动增量最小值

大无语事件,在编译器 IDEA 中,将代码上传远程仓库 gitee 中,出现如下错误:

Push failed
Invocation failed Server returned invalid Response.
……

问题描述

在编译器 IDEA 中,将代码上传远程仓库 gitee 中,出现如下错误:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Push failed
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22)
at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:56)
Caused by: java.io.IOException: Server returned invalid Response.
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242)
at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:19)
... 1 more

解决方法

这个问题,主要出现在网络的问题上,所以更换一个网络,就可以了

0%