资源简介
SpringBoot写一个登陆注册功能,开发工具使用IDEA,技术使用SpringBoot2.1.3+Mybatis+Jpa+mysql,项目中主要使用Mybatis,jpa只做了demo,实体转换使用的是mapstruct,集成了swagger文档配置,redis缓存demo,代码只是参考,请学会思考,重要的是开发过程中的乐趣,开发步骤请参考我的博客:https://blog.csdn.net/kaifaxiaoliu/article/details/89309047
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
Syst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 768 2019-02-28 21:30 SpringBootDemo\.gitignore
文件 833 2019-04-15 10:38 SpringBootDemo\.idea\compiler.xm
文件 345 2019-04-13 13:46 SpringBootDemo\.idea\encodings.xm
文件 1969 2019-04-13 20:39 SpringBootDemo\.idea\inspectionProfiles\Project_Default.xm
文件 471 2019-04-03 11:07 SpringBootDemo\.idea\libraries\Maven__antlr_antlr_2_7_7.xm
文件 577 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 556 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 523 2019-04-13 17:59 SpringBootDemo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_57.xm
文件 531 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 653 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 604 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 632 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 683 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 697 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 738 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_fasterxm
文件 508 2019-04-05 09:49 SpringBootDemo\.idea\libraries\Maven__com_google_guava_guava_20_0.xm
文件 555 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 709 2019-04-03 11:04 SpringBootDemo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 512 2019-04-03 11:07 SpringBootDemo\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
文件 596 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_lettuce_lettuce_core_5_1_4_RELEASE.xm
文件 581 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_buffer_4_1_33_Final.xm
文件 574 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_codec_4_1_33_Final.xm
文件 581 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_common_4_1_33_Final.xm
文件 588 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_handler_4_1_33_Final.xm
文件 595 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_resolver_4_1_33_Final.xm
文件 602 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_netty_netty_transport_4_1_33_Final.xm
文件 624 2019-04-03 15:13 SpringBootDemo\.idea\libraries\Maven__io_projectreactor_reactor_core_3_2_6_RELEASE.xm
文件 562 2019-04-05 09:49 SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_core_2_9_2.xm
文件 576 2019-04-05 09:49 SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_schema_2_9_2.xm
文件 555 2019-04-05 09:49 SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_spi_2_9_2.xm
............此处省略334个文件信息
- 上一篇:sql server 2008破解
- 下一篇:教学评价管理系统
相关资源
- SSM框架--Spring+SpringMVC+Mybatis整合
- spring+springmvc+mybatis OA考勤管理系统带
- springMVC入门(员工系统-Mysql)代码简
- MyBatis的逆向工程——generatorSqlmapCus
- spring security acl
- 基于SSM框架的完整项目 Spring+SpringMV
- ssm框架--spring mvc实现文件上传
- SSM框架+mybatis自动生成代码
- springboot开发的视频网站源码.zip
- 家庭财务管理系统SpringMVC3+Spring3+Myb
- springmvc+jdbctemplate+mysql(采用注解方式
- struts2登录注册
- 远程手术指导及示教系统的springboot项
- Eclipse+sql做的用户登录注册系统
- spring+Mybatis+SpringMVC资源整合增删改查
- 基于springboot的教师评价系统带sql文件
- 后台权限管理系统微服务
- SpringClouud zuul +oauth 实现权限控制
- maven+springMVC+mybatis+mysql+Bootstrap-Admin-
- SpringMVC+Mysql详解
- eclipse + MySQL+struts 实现登录注册
- Struts2+MySQL登录注册
- springboot
- Springer-LNCS word格式
- 基于springmvc+mybatis+spring+maven+mysql的网
- 本文主要介绍NodeJS+Express+Mysql实现用户
- 微博--登录功能实现
- servlet实现登录注册等源码
- spring+springmvc+mybatis完善的增删改查,
- SSH2整合(Struts2+Spring+Hibernate)+SQL S
评论
共有 条评论