# soft-manage **Repository Path**: loyalty-code/soft-manage ## Basic Information - **Project Name**: soft-manage - **Description**: jpa+mybatis-plus - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-27 - **Last Updated**: 2023-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 软件管理 #### spring boot + mysql + jpa #### vue2 + js + webpack + element-ui #### 后续前端升级修改: (vue3 + js/ts + vite + element-plus) (vue3 + ts + vite + element-plus) #### 后续研究:vue+antd/element+springboot+shiro+mybatisPlus (jpa企业开发很少有人用) #### Lombok Requires Annotation Processing Build Compiler 勾选以下enable Annotation Processing,然后应用即可 #### Junit5 的数据驱动以及传参方式 https://blog.51cto.com/u_13281972/2995539 ```java package com.wenzhi.manage.leetcode.algorithm; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import java.util.stream.Stream; import com.wenzhi.manage.leetcode.datastructure.StringToArray; import org.junit.jupiter.params.provider.MethodSource; // import org.springframework.beans.factory.annotation.Autowired; // import static org.junit.jupiter.api.Assertions.*; class MinNumberOfHoursS2383Test { // @Autowired // 控制台无ans:输出 // private MinNumberOfHoursS2383 sl; @BeforeEach void setUp() { System.out.println("setUp!"); } @AfterEach void tearDown() { System.out.println("tearDown!"); } public static Stream constructData() { // 类型需要一致 return Stream.of(Arguments.arguments("5", "3", "[1,4,3,2]", "[2,6,3,1]", "8"), Arguments.arguments("2", "4", "[1]", "[3]", "0")); } @ParameterizedTest @MethodSource("constructData") void dataDrivenTesting(String s1, String s2, String s3, String s4, String s5) { int initialEnergy = Integer.parseInt(s1); int initialExperience = Integer.parseInt(s2); int[] energy = StringToArray.stringToInt1dArray(s3); int[] experience = StringToArray.stringToInt1dArray(s4); int expected = Integer.parseInt(s5); MinNumberOfHoursS2383 sl= new MinNumberOfHoursS2383(); int ans = sl.minNumberOfHours(initialEnergy, initialExperience, energy, experience); System.out.println("ans: " + ans); Assertions.assertEquals(ans, expected); } @Test void minNumberOfHours() { String s1 = "5"; String s2 = "3"; String s3 = "[1,4,3,2]"; String s4 = "[2,6,3,1]"; String s5 = "8"; int initialEnergy = Integer.parseInt(s1); int initialExperience = Integer.parseInt(s2); int[] energy = StringToArray.stringToInt1dArray(s3); int[] experience = StringToArray.stringToInt1dArray(s4); int expected = Integer.parseInt(s5); MinNumberOfHoursS2383 sl= new MinNumberOfHoursS2383(); int ans = sl.minNumberOfHours(initialEnergy, initialExperience, energy, experience); System.out.println("ans: " + ans); Assertions.assertEquals(ans, expected); } } ``` #### TreeNode 和 ListNode (TreeNodeUse等其他目录调用要public,所以得单独一个.java文件!) ```java /** * Definition for singly-linked list. */ public class ListNode { public int val; public ListNode next; public ListNode() {} public ListNode(int val) { this.val = val; } public ListNode(int val, ListNode next) { this.val = val; this.next = next; } } public class TreeNode { public int val; public TreeNode left; public TreeNode right; TreeNode() {} public TreeNode(int val) { this.val = val; } public TreeNode(int val, TreeNode left, TreeNode right) { this.val = val; this.left = left; this.right = right; } } /* * 1、IDEA 有一个快捷键 Ctrl+Alt+shift+K。 选中一段代码直接就能将java 代码转化为kotlin 代码。 Ctrl+A 然后 Ctrl+Alt+shift+K 就能直接转化为kotlin 代码。 --> 管用 2、如果想转回去: Kotlikn 转 Java Tools>Kotlin>Show Kotlin Bytecode Decompile ok。 -> idea这个版本不管用 -> ctrl+Z撤回即可 * */ ``` #### Mybatis-plus https://baomidou.com/ #### api.github.com ```json { "current_user_url": "https://api.github.com/user", "current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}", "authorizations_url": "https://api.github.com/authorizations", "code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}", "commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}", "emails_url": "https://api.github.com/user/emails", "emojis_url": "https://api.github.com/emojis", "events_url": "https://api.github.com/events", "feeds_url": "https://api.github.com/feeds", "followers_url": "https://api.github.com/user/followers", "following_url": "https://api.github.com/user/following{/target}", "gists_url": "https://api.github.com/gists{/gist_id}", "hub_url": "https://api.github.com/hub", "issue_search_url": "https://api.github.com/search/issues?q={query}{&page,per_page,sort,order}", "issues_url": "https://api.github.com/issues", "keys_url": "https://api.github.com/user/keys", "label_search_url": "https://api.github.com/search/labels?q={query}&repository_id={repository_id}{&page,per_page}", "notifications_url": "https://api.github.com/notifications", "organization_url": "https://api.github.com/orgs/{org}", "organization_repositories_url": "https://api.github.com/orgs/{org}/repos{?type,page,per_page,sort}", "organization_teams_url": "https://api.github.com/orgs/{org}/teams", "public_gists_url": "https://api.github.com/gists/public", "rate_limit_url": "https://api.github.com/rate_limit", "repository_url": "https://api.github.com/repos/{owner}/{repo}", "repository_search_url": "https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}", "current_user_repositories_url": "https://api.github.com/user/repos{?type,page,per_page,sort}", "starred_url": "https://api.github.com/user/starred{/owner}{/repo}", "starred_gists_url": "https://api.github.com/gists/starred", "topic_search_url": "https://api.github.com/search/topics?q={query}{&page,per_page}", "user_url": "https://api.github.com/users/{user}", "user_organizations_url": "https://api.github.com/user/orgs", "user_repositories_url": "https://api.github.com/users/{user}/repos{?type,page,per_page,sort}", "user_search_url": "https://api.github.com/search/users?q={query}{&page,per_page,sort,order}" } ``` #### 不用账号国内体验ChatGPT https://www.cursor.so/ ```text Build Software. Fast. Write, edit, and chat about your code with a powerful AI ``` #### List<String>转为String[]数组,String[]数组转为List<String> https://blog.csdn.net/qq_34246965/article/details/107973066