1.repository Almost all apps, from the simplest to the most complex, include state management and data sources in their architecture. Common state management methods include Bloc, Cubit, Provider, ViewModel, etc. Data sources are classes that directly interact with databases or network clients to obtain corresponding data and parse them into models. Typically, the state manager […]
Tag: repository
Use Google Artifact Repository to build a docker image warehouse
Refer to Google official documents https://cloud.google.com/artifact-registry/docs/docker/store-docker-container-images First enable GAR api gcloud services enable artifactregistry.googleapis.com gcloud services list | grep -i artifact artifactregistry.googleapis.com Artifact Registry API Secondly create a docker image warehouse gcloud artifacts repositories create my-docker-repo –repository-format=docker –location=eurepo-west2 –description=”” Use the following command to list existing warehouses > gcloud artifacts repositories list Listing items under […]
How to upload your own Jar to the Maven central repository
During project development, we often use Maven to pull open source third-party Jar packages from the warehouse. This article will guide you to publish your own code or open source projects to the Maven central warehouse, so that others can directly rely on your Jar package without first downloading your code and then installing it […]
Project practice: add four annotations @Controller and @Service@Repository@Autowire
1.@Controller package com.csdn.mymvc.annotation; import java.lang.annotation.*; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface Controller { } 2.@Service package com.csdn.mymvc.annotation; import java.lang.annotation.*; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface Service { } 3.@Repository package com.csdn.mymvc.annotation; import java.lang.annotation.*; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface Repository { } 4.@Autowire package com.csdn.mymvc.annotation; import java.lang.annotation.*; @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @Inherited public @interface Autowire { } 1. FruitController package […]
Visual Studio uses Git to ignore files you don’t want to upload to the remote repository
Foreword As a .NET developer, with the support of the most powerful IDE in the universe: Visual Studio, our development efficiency has been better improved. We don’t need to worry about the configuration of environment variables and other code management tools, because Visual Studio has many expansion tools. Without further ado, let’s get straight to […]
ubuntu delete software repository
Article directory Method 1. Use apt to delete the warehouse Method 2. Use GUI to delete the software repository in Ubuntu? Method 3. Delete the warehouse through the directory (for experts?) Additional steps: Delete the GPG key after deleting the repository (for advanced users) Be careful what you add and remove You can add external […]
Configure SSH connection code repository locally
1. Create SSH 1. Check whether you have had ssh before and enter it in the terminal. cd ~/.ssh If No such file or directory is displayed, it means that ssh has not been created before, go directly to the next step; if you can enter directly, you need to clean up rss first, and […]
Github releases open source JAR packages as a maven repository
github releases open source JAR packages as a maven repository 1. Preparation: Create a warehouse on github to store jars. For example: maven-repository (warehouse address) Create a token (address link) on github, because we need to upload the jar to the warehouse, and permission issues cannot be avoided, but it is not safe to use […]
11 | How to customize JpaRepository
EntityManager introduction The Java Persistence API stipulates that operating database entities must be performed through EntityManager. As we saw earlier, the implementation class of all Repositories in JPA is SimpleJpaRepository, which calls methods in EntityManager when it actually operates entities. We set a breakpoint in SimpleJpaRepository, so that we can easily see that EntityManger is […]
gitlab repository installation
gitlab repository installation Download address https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ https://packages.gitlab.com/gitlab/gitlab-ce Here we take gitlab-ce-14.3.0 as an example Install dependencies [root@ebs-139265 opt]# sudo yum install -y curl policycoreutils-python openssh-server perl [root@ebs-139265 opt]# sudo systemctl enable sshd [root@ebs-139265 opt]# sudo systemctl start sshd ### If you don’t have a firewall enabled, you don’t need to execute the following command. [root@ebs-139265 […]