新安装IDEA,新建SpringBoot工程运行失败的原因

使用Idea新建一个SpringBoot整合SSM的项目,无法运行!!! SpringBoot整合SSM项目,在新建时,要添加五个最基本的依赖,分别是:Spring、SpringMVC、Thymeleaf和Mybatis。 SpringBoot项目本身就包含了Spring,不需要添加依赖,所以要排除在外,其他的分别是: 1.SpringWeb,里面包含了RESTful服务和SpringMVC, 2.Mybatis Framework 3.Mysql Driver连接数据库 4.Thymeleaf渲染模板,页面展示的时候,进行渲染 是的,只需要以上四个依赖便可以正常运行一个SSM 阅读详情

前几天买了一条新的笔记本电脑,然后下载了IDEA安装,随后新建SpringBoot工程,新建工程后,一直在下载依赖库jar文件,我以为很快就下载完,谁知下载了一个晚上都没有成功,第二天一起床想了一想,难度是国内的墙墙出了?

然后我打开Adminitrator目录下的.m2文件的settings.xml

把里面的内容改为如下,

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
    <mirrors> 
        <mirror> 
            <id>alimaven</id> 
            <name>aliyun maven</name> 
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
            <mirrorOf>central</mirrorOf> 
        </mirror> 
    
    </mirrors> 
</settings>

果然一切顺利解决问题

JAVA之旅–idea安装和配置傻瓜教程暨新建springboot工程(四) idea配置、springboot工程创建、常见坑盘点 阅读详情

相关推荐

Idea创建Spring Boot项目超时失败的解决方案及Maven改SpringBoot

前言 说起IntelliJ IDEA 可谓是作为一名开发者必须知道的神器了,便捷高效,但不知道是升级了新的Idea软件,还是网络不通畅缘故,笔者这两天老遇到一个创建超时的问题。 用 IDEA 创建 Spring Boot项目时总是失败,搞得我很郁闷,所以诞生了这篇小技巧文章!本文给出几种创建Spring Boot项目的解决或备选方案,让你再也不用创建不了Spring Boot项目而骂 IDEA了。 接下来,好戏开场了~ 1.idea原生方式创建 用过 IDEA企业版 的都知道,在新建项目时候,创建地址直

空空说技术的博客 3767

解决:Logging system failed to initialize using configuration from ‘logback.xml ‘...

在本篇文章中,我们介绍了解决"Logging system failed to initialize using configuration from 'logback.xml'"错误的一些方法。首先,我们要检查配置文件的路径和名称是否正确。其次,确认配置文件位于正确的类路径下,并排查类路径冲突。然后,检查日志框架的依赖关系以及配置文件的内容。通过以上方法,我们应该能够成功解决这个初始化错误,并顺利运行我们的Java应用程序。

牛肉胡辣汤 6476

Idea导入SpringBoot源码终极版(基于Gradle)

Idea导入SpringBoot源码终极版一、导入Spring源码的准备1.1 Gradle的下载和配置1.2 IDEA集成Gradle1.3 下载SpringBoot源码二、导入及避坑2.1 导入源码2.2 避坑的地方三、增加测试模块试运行3.1 新建测试模块 一、导入Spring源码的准备 本人工具及环境介绍 Windows 10 + IDEA 2020.1 + JDK 11.0.9 + Gradle 6.5 + spring-boot 2.5.0-SNAPSHOT 1.1 Gradle的下载和配置

半吊子Kyle的博客 4157

从svn检出来的spring boot项目下载不了jar包,是因为缺少依赖

spring-snapshots http://repo.spring.io/libs-snapshot &amp;amp;amp;amp;lt;properties&amp;amp;amp;amp;gt; &amp;amp;amp;amp;lt;java-version&amp;amp;amp;amp;gt;1.7&amp;amp;amp;amp;lt;/java-version&amp;amp;amp;amp;

qq_38386407的博客 1986

IDEA 创建简单的 SpringBoot 工程(含设置 HTTP Proxy 网络代理)

用 idea 创建一个简单的SpringBoot 工程,步骤很简单,如下所示。 Step 1、打开 IDEA,创建新工程,设置 SDK ,选择初始化服务地址。 步骤:File > New > Project > Spring Initializr > 配置 Project SDK,选择 Initializr Service URL > Next。 点击 Next 按...

长安明月的博客 4983

Windows11+VS2022驱动开发环境搭建实战:从零到编译(避坑指南)

本文详细介绍了在Windows11系统下使用VS2022搭建驱动开发环境的完整流程,包括版本匹配、工具安装、环境配置及常见问题解决。重点强调了WDK与系统版本的严格匹配,以及VS2022中驱动开发组件的正确配置方法,帮助开发者高效避坑并成功编译第一个驱动程序。

weixin_29251337的博客 527

Idea新建springboot项目遇到的问题及解决

Idea新建springboot项目遇到的问题及解决:1.更换阿里云;2.源发行版17需要目标发行版17;3.类文件具有错误的版本 61.0,应为52.0

雨田大大的专栏 1880

1.2 固态变压器:传统工频变压器的局限与SST的技术起源

本小节明确传统工频变压器在电力系统中的基础定位与核心工作特性,系统分析其在新型电力系统场景下的固有技术瓶颈,梳理固态变压器(Solid State Transformer, SST,又称电力电子变压器Power Electronic Transformer, PET)从概念提出到工程化成熟的完整演进路径,为后续SST技术优势、设计需求与规范符合性要求的讲解建立底层逻辑,同时对应GB/T 40429-2021《电力电子变压器通用技术要求》的需求制定背景。

技术工作者 659

Spring boot环境的常见问题

因为我们这个项目是按照 “Spring Boot的模板” 创建的,所以系统会给我们自带一些Spring Boot的默认配置。这些配置,有的没用,有的有用。下面这个就是没用的,对于这个原则是【尽量下载,如果实在下载不下来,就删掉】(3)Setting 配置里/font>(1)pom.xml 文件。如何查看项目中已导入的包。

wuweixiaoyue的博客 3225

生存网络与mlr3proba

通过结合生存网络和mlr3proba,可以使用生存网络模型来预测个体在给定时间点发生事件的概率,并使用mlr3proba提供的工具进行模型的训练、评估和选择最佳模型。iii)基本的机器学习(ML)方法,如重新排序和调整。在本文中,我们将只讨论前五种,因为它们在文献中得到了更好的建立,并且它们具有相同的接口,这简化了调优,我们将在下面看到。我们不会为模型指定自定义架构,而是使用默认架构,如果你熟悉PyTorch,那么你可以选择创建自己的架构,如果你愿意的话,通过将其传递给模型中的custom_net参数。

weixin_46587777的博客 1363

Windows11开机必看:3种方法跳过联网激活(含最新OOBE命令)

本文详细介绍了Windows11新机开箱时绕过联网激活的三种实用方法,包括任务管理器终止进程法、命令行强制终止法和最新的OOBE\BYPASSNRO命令法。特别推荐使用微软官方预留的OOBE命令,操作简单且无副作用,帮助用户快速完成系统设置。

weixin_28366353的博客 1627

idea创建springboot工程失败解决方案

idea创建springboot工程失败解决方案

29岁的裴野永远爱你 768

浏览器主页被2345劫持简单处理方法

本人比较常用的浏览器是IE和Chrome IE: 将网址修改为https://www.baidu.com 应用-确定-重新打开IE浏览器 或者win+r运行regedit打开注册表找到这个值   HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main下  和HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main这个下面的StartPage ...

A soul tortured by desire 2万+

关于IDEA新建SpringBoot项目加载很慢或下载失败以及插件下载失败的解决办法

IDAE新建SpringBoot项目及安装插件常见问题 最近在学习java的SpringBoot框架,但是万事开头难,新建SpringBoot项目就出现了问题,不是SpringBoot模拟加载很慢就是模板下载失败,一直以为是校园网的原因。懂的都懂,哈哈哈,网络是一个原因,其次就是模板下载是国外网站,配置一下镜像文件就可以解决了。 SpringBoot模板或依赖加载下载失败解决办法 我们需要找到idea自带的maven配置settings.xml或者自己配置maven的settings.xml文件 1.ide

weixin_50874065的博客 5729

人工智能混合编程实践:C++调用封装好的DLL进行异常检测推理

C++、Python、ONNX、人工智能、异常检测、Anomalib 2.1.0

FriendshipTang的博客 170

豆包手机为什么能自己“玩手机”?原理是什么?豆包手机系统运行机制深度解析:读屏、抓取、推理链路全拆解

作为一个每天被前端 Bug 打醒的程序员,我这一阵子在关注“豆包手机”这个关键词,刷到的相关视频简直铺天盖地。朋友们,说句实话,我一开始也只是抱着“看看热闹”的心态,最近一位博主下面的内容,不是“它能做什么”,而是。如果你之前看过很多评测,这篇文章会给你完全不一样的视角。

代码简单说 Vue、JAVA、PHP、Node.js 熟练运用,接口、架构、性能全搞定。 1014

【IDEA】使用IDEA创建SpringBoot项目

使用IDEA创建SpringBoot项目

李晋江的博客 4782

医学图像处理实战:利用OpenSlide解析病理SVS切片的完整解决方案

本文介绍了使用openslide处理病理SVS切片的完整流程,从基础安装到科研应用。主要内容包括:1)SVS切片特点及openslide工具简介;2)环境配置与软件安装;3)基础操作:读取切片、查看信息、可视化不同层级图像;4)进阶操作:坐标裁剪与批量处理;5)科研方向拓展:结合AI模型进行病理分割分类、量化分析及可视化报告。教程提供了完整的代码示例,帮助毕业设计学生快速掌握病理图像分析的核心技能。

m0_71589036的博客 311

idea新建springboot项目pom文件报错

前言 之前也有过类似的情况,只不过都是把spring-boot-starter-parent版本号改成本地仓库已经有的,然后继续开发。今天想写个demo,就新建了一个,然后版本号不一致,就一直报错,所以找了一天问题,才解决。太可怕了 新建springboot项目的问题 使用idea,一路next,到最后生成项目 然后pom文件报错 我特意换了一个全新的maven,发现是因为jar拉不下来,就配置了...

GMaya的博客 1万+

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

springBoot--- 细节2:idea进行springBoot热部署失败的原因

问题:idea进行springBoot热部署失败 原因:出现这种情况,并不是热部署配置的问题 根本原因是idea默认不自动编译 需要设置为自动编译 设置步骤:(1) file— settings— Compiler— 勾选 Build project automaticlly (2) 按ctrl+shift+Alt+/— 选择Registry— 勾选 compiler.automake.all...

xiexun001的博客 1303

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

idea新建springboot项目并提交码云仓库

IDEA创建springboot项目,本质是从官网创建并下载项目,然后导入本地。创建项目连接失败,一般是外国网站的原因导致连接超时,解决方式很简单:取消使用springboot官网来创建项目,而改用阿里云的支持

我的身体只需要很少的粮食就能养活;而我的灵魂却非常地贪婪,需要日月星辰、山川湖泊和大自然的滋养。 922

SIMATIC S7-1200, S7-1500 PID 控制[手册]

SIMATIC S7-1200, S7-1500 PID 控制[手册]

IDEA 创建springboot项目失败终极解决方案

IDEA 创建springboot项目失败终极解决方案IDEA 创建springboot项目失败终极解决方案问题描述:解决方案 IDEA 创建springboot项目失败终极解决方案 问题描述: 在使用idea 创建springboot项目的时候,我电脑这边的网络可能有有一些问题,经常出现 connect timed out ,并且在项目初始化(download 官网资源)的时候经常会挂掉 解决方案 方案一: 在初始化的时候替换掉 Custom: 可以的使用的网址分别是 : spring的http

qq_26071319的博客 7750

Mac Catalina IDEA运行项目时日志文件夹提示创建失败

Mac运行项目时/home/logs文件夹创建失败背景解决办法两个方案任选其一:方案一:手动创建目录,然后授予最高权限方案二:修改目录拥有者root的权限组 背景 心心念终于入手一台Mac笔记本,开始了Mac本敲代码的生涯,在使用IDEA导入公司springboot项目准备运行时,SB了出现下图报错了,本人机器版本macOS Catalina。 解决办法 what is fk?这是什么鬼?无奈耐住性子开始瞅瞅这啥,大概意思就是项目日志文件创建失败;正常公司项目都是部署在Linux系统上的,日志文件目录一般

buertianci的博客 5795

【IDEA】IDEA 中运行SpringBoot +JSP项目,JSP页面404问题

我顺着这个目录找,我发现并没有和他说的运行我的目标模块会生成多个tomcat目录,但确实在 tomcat.xxxx.port这个目录下没有自动生成jsp java和class文件,不过这个生成条件是打开浏览器访问后生成的,由于我把历史都删了,所以没有留意之前访问失败的有没有生成。在IDEA中运行module1时,在C:\Users\xxx\AppData\Local\Temp这个目录下,会生成两个tomcat目录,(这个路径控制台会打印出来,可以从那里找)首先,代码肯定没问题。

H_Yi_Lee的博客 1591

SpringBoot项目在eclipse启动成功,在idea中失败

最近用了SpringBoot的项目,使用了特定的方式来配置,让我们可以不用再看那么一坨xml真是神清气爽。之前的开发一直都是在eclipse上,因为习惯了IDEA,所以在idea上试了一下,结果出了点小问题。              首先,springboot有两种启动方式,既可以直接通过main方法启动,也可以在tomcat里启动,在main方法里启动很简单,直接run启动类的main方法就

许小乖……是总攻 1万+

springboot系列——IDEA创建项目并运行

springboot系列——IDEA创建项目并运行,包括创建中遇到的各种报错解决方法

qq_43886548的博客 1778
上一篇: Java IO分类,最详细,最全面
下一篇: 在Linux中把SpringBoot注册成系统服务运行
JianfeiMa
博客等级 码龄10年 61粉丝 131原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值