V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ikas  ›  全部回复第 4 页 / 共 25 页
回复总数  493
1  2  3  4  5  6  7  8  9  10 ... 25  
173 天前
回复了 williamshan 创建的主题 程序员 Java 转 GO 还是 Rust
语言只是你的工具,你说的那些框架的思维,解决一类问题的设计与方案才是你需要掌握的
提高自己的学习能力,也不是看什么语言流行,有趣就学什么才行

一个掌握 N 门外语的人,但是不懂如何写好小说,那么写出来的东西谁去看?
173 天前
回复了 limpo 创建的主题 Go 编程语言 Go-Spring 轻装上阵,重新出发 v1.0.0 !
时代变了.连 spring 的思维都没人想着去理解了
试试用苹果的 dns 配置文件屏蔽.下面是我的

<key>DNSSettings</key>
<dict>
<key>DNSProtocol</key>
<string>TLS</string>
<key>ServerAddresses</key>
<array>
<string>127.0.0.1</string>
</array>
<key>ServerName</key>
<string>dns.name</string>
<key>SupplementalMatchDomains</key>
<array>
<string>*.id6.me</string>
<string>*.open.e.189.cn</string>
<string>opencloud.wostore.cn</string>
<string>auth.wosms.cn</string>
<string>id.mail.wo.cn</string>
<string>mdn.open.wo.cn</string>
<string>hmrz.wo.cn</string>
<string>nishub1.10010.com</string>
<string>enrichgw.10010.com</string>
...
</array>
</dict>
176 天前
回复了 PerryHe 创建的主题 Flash 现在还有人用 Flash 开发吗,怀念当初的辉煌
1.原来的 Aodbe Flash 软件变成 Aodbe Animate,最近 b 站很多凡人动画都是用这个制作的
2.如果原来学过 AS2,AS3,先搞 js 也没有任何压力
3.如果以前是写 Flex 的,那么现在写 xaml,vue 等也没有压力
https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim?view=windows-11
看里面的捕获与应用命令,2 个

备份可以直接备份,不用进入 pe 环境
恢复直接高级模式启动进入 pe,然后恢复
看了下源码,可能这个比较适合你们公司业务
如果要设计一个通用的,还是要改动的,将资源抽离,仅保留权限标志

比如 shiro 的权限检查
https://shiro.apache.org/java-authorization-guide.html

```
String perm = "printer:print:laserjet4400n";

if(currentUser.isPermitted(perm)){
//show the print button?
} else {
//don’t show the button?
}
```
前后端分离与这些没有任何关系.

很多后端系统,比如金融证券行业的系统,客户都是要完全自己配置的,菜单 url 也不一定是自己系统的(所以要可以新增,修改),不能再搞一套关系表来配置这些

重点是基于资源统一管控这些
182 天前
回复了 blinue 创建的主题 Windows WinUI 3 的源代码已放出
WinUI 3 没有那么不堪吧,使用 c++ winui3 重构之前使用 sdl2+win32ui 写的 app,效果还是可以的.
主要问题其实是 c#来写太慢了,这个不是 winui3 的锅,只是到现在也没法原生编译,比使用 c# uwp 原生编译慢太多了
那些模型只是参考,基本都是混合一起..
我目前常用的方式:
资源: 接口,按钮,菜单等等都是资源, 设计一张资源表,然后菜单表中关联资源 id,其它也是
角色,用户组,或者是用户: 这些与资源关联,关联关系还有计算模式(比如+,-)
用户与角色等关联,这个没什么说的

不管是计算菜单还是其它均是只有一个入口,就是获取其所属资源列表,然后再去关联

根据业务,客户要求, 资源的关联方可以灵活选用,比如只使用角色
1.权限标志,只是资源的一种友好标识符而已,这菜单也只是资源的一种
2.菜单的管理与权限本身没有什么关联,对菜单的管理操作不过是后台管理系统中的基本功能(很多客户要求自行配置菜单的)
3.资源,比如某个 api 对应的后端方法,这个通常只能由后端定义
4.它这里菜单添加了权限标志,只是为了权限框架统一管理

国内后端常见的权限模型:
Resource-Based Access Control
Role-Based Access Control
像素密度不够,windows 上效果都不行

我的台式机屏幕 24 英寸,4k.各种字体替换都不行,对比 surface pro 差太多了
Aves 开源
Jetpack Compose 是新的 ui 框架,可能你 as 创建这个类型的 app 了

文档默认是基于 xml 的那个 ui,可以先看看这个
直接注册,自己开发机部署,不上架不要钱
兼容类
java 中没啥好办法

我自己的一个安卓项目,使用了不同版本的内置 api

dependencies {
api platform(project(':bom'))
implementation project(":system-common")
implementation project(":system28")
implementation project(":system29")
implementation project(":system30")
implementation project(":system31")
implementation project(":system32")
implementation project(":system33")
implementation project(":system34")
}

if (AndroidVersionUtil.getVersion() >= 34) {
permissionManager = new PermissionManager34();
....
} else if (AndroidVersionUtil.getVersion() >= 33) {
permissionManager = new PermissionManager33();
...
} else if (AndroidVersionUtil.getVersion() >= 32) {
permissionManager = new PermissionManager32();
....
}
...
193 天前
回复了 Lounode 创建的主题 程序员 同事大概是 Java 写多了,写的 C#叹为观止
这是人的问题
195 天前
回复了 cxsz 创建的主题 Java spring boot 项目 maven 打包问题请教
parent :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.lddq</groupId>
<artifactId>exam-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>3.1.0</spring-boot.version>
</properties>

<modules>
<module>exam-common</module>
<module>exam-web</module>
<module>exam-file</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.26</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>


common:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.lddq</groupId>
<artifactId>exam-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<packaging>jar</packaging>
<artifactId>exam-common</artifactId>

</project>

file:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.lddq</groupId>
<artifactId>exam-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<packaging>jar</packaging>
<artifactId>exam-file</artifactId>

<dependencies>
<dependency>
<groupId>com.lddq</groupId>
<artifactId>exam-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>

</project>

web:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.lddq</groupId>
<artifactId>exam-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<packaging>jar</packaging>
<artifactId>exam-web</artifactId>

<dependencies>
<dependency>
<groupId>com.lddq</groupId>
<artifactId>exam-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.lddq</groupId>
<artifactId>exam-file</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>

----
java -jar exam-web-0.0.1-SNAPSHOT.jar
2023-10-13T21:16:58.496+08:00 INFO 18832 --- [ main] com.lddq.exam.start.ExamApplication : Started ExamApplication in 2.102 seconds (process running for 2.557)
2023-10-13T21:16:58.500+08:00 INFO 18832 --- [ main] com.lddq.exam.start.ExamApplication : hi file!
只是靠这些,没法分析.

一般都是上指标监控,搭建一个 Promethues,grafana . 然后接口接加上指标统计..搭配 jvm gc,系统 cpu 等指标一起分析
AntV G2
1  2  3  4  5  6  7  8  9  10 ... 25  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3224 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
Developed with CodeLauncher
♥ Do have faith in what you're doing.