java.lang.ClassNotFoundException: org.springframework.core.io.Resource 解决办法

从零打造算法题刷题助手:Agent搭建保姆级攻略 【摘要】"大厂机试助手"是一款基于Trae平台开发的智能体,专为解决求职者编程机试痛点设计。该工具提供三大核心功能:1)多语言解题思路引导与代码生成;2)自动整合题目、案例和解析为HTML笔记;3)一键发布技术博客。通过提问式引导培养用户自主解题能力,强调代码规范,并生成系统化复习资料。技术实现上采用Trae IDE搭建,配置了包括掘金发布在内的多种工具。实测显示,该助手能有效解析题目、生成可运行代码,并输出排版精美的学习笔记,帮助用户高效备战大厂技术面试。 阅读详情



问题描述:

    在使用maven依赖项spring MVC、Hibernate和Struts2构建REST web项目之后,我将项目进行打包 “ProcjectName.war”,并通过tomcat manager html页面将其上传到 Linux 的tomcat 服务器,它可以正常工作。但是当我尝试在本地tomcat服务器 (Windows平台)上部署war时,我从tomcat catalina日志中得到了错误信息,具体如下:


java.lang.NoClassDefFoundError: org/springframework/core/io/Resource

at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromResource(ProcessEngineConfiguration.java:229)
at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromResource(ProcessEngineConfiguration.java:225)
at etc.TActiviti.createActivitiTables2(TActiviti.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

... 26 more



问题分析:

    通过如上异常信息可知 “ java.lang.ClassNotFoundException: org.springframework.core.io.Resource ” 为缺少 Spring所依赖的包导致。



解决方案:

一:

    如果你的项目为Maven项目,则直接在项目的 pom.xml的配置文件中添加如下配置内容:

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-core</artifactId>
		<version>${spring-core.version}</version>
	</dependency>

注:${spring-core.version} 为项目中兼容的版本,否则后续开发起来很痛苦。。。


二:

    如果是普通Web项目或者动态Web项目,则需要手动导入依赖的spring-core-x.x.x.jar 包,我在这儿准备了几个常用的版本的jar包,一定要和自己的项目中spring的版本对应了再下载,否则不要下载,点击下面链接地址:

https://download.youkuaiyun.com/download/hello_world_qwp/10472047








    好了,关于 java.lang.ClassNotFoundException 就写到这儿了,如果还有什么疑问或遇到什么问题欢迎扫码提问,也可以给我留言哦,我会一一详细的解答的。
歇后语:“ 共同学习,共同进步 ”,也希望大家多多关注CSND的IT社区。

java.lang.NoClassDefFoundError: org/springframework/core/io/Resource java.lang.NoClassDefFoundError: org/springframework/core/io/Resource at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromResource(ProcessEngineConfiguration.java:232... 阅读详情

相关推荐

Java NoClassDefFoundError 根本原因与 TongWeb 排查指南

NoClassDefFoundError 是 Java 运行时类加载失败的典型错误,本质并非类文件缺失(那是 ClassNotFoundException),而是 JVM 在执行类静态初始化(static block 或 static final 字段初始化)时抛出未捕获异常,导致类状态变为‘初始化失败’。其技术价值在于暴露了隐式依赖、类加载器隔离、JDK 版本兼容性等深层工程问题。常见于 Spring 应用启动、定时任务、国产中间件(如 TongWeb)等场景,尤其在静态块中调用未就绪的 Spring B

weixin_30823001的博客 375

javassist 版本导致ClassNotFoundException: javassist.ClassPath异常

1、异常描述使用Dubbo时,引入了javassist导致出现了ClassNotFoundException: javassist.ClassPath异常,因为此异常网上资料较少,特分享出来供大家脱坑: 服务启动后报错:message: Context initialization failed (o.s.web.context.ContextLoader:350) [localhost-sta

hoaven的博客 1万+

SpringBoot项目代码保护实战:ProGuard混淆与字节码加密防反编译方案详解

在Java应用开发中,代码保护是保障知识产权和核心业务逻辑安全的重要环节。其基本原理是通过技术手段增加逆向工程的难度,防止源代码被轻易反编译和抄袭。从技术价值看,有效的代码保护不仅能防止商业逻辑泄露,也是企业级软件交付的标准实践。在应用场景上,尤其对于需要交付给第三方部署的SpringBoot项目,代码混淆和加密成为刚需。本文聚焦于SpringBoot项目的代码保护,深入解析ProGuard代码混淆与自定义类加载器实现字节码加密两种主流方案,并探讨如何通过混合策略平衡防护强度与工程可维护性,为开发者提供从原

weixin_30326741的博客 380

Caused by: java.lang.ClassNotFoundException: org.springframework.data.repository.config.BootstrapMod...

1、起因,启动SpringBoot2.0的时候报了这个错误。说找不到类,咱也是刚学SpringBoot2.0,咱也不懂,咱也不知道问谁,研究一翻,找不到原因就百度了。 参考链接:https://blog.csdn.net/sswqzx/article/details/87432287 报错如下所示: 1 "C:\Program Files\Java\jdk1.8.0_161\bin\...

HiterCoder 9028

Spring Boot启动报错Failed to process import candidates排查与解决方案

Spring Boot的自动装配机制是其核心特性之一,它通过@EnableAutoConfiguration和一系列@Conditional注解,在应用启动时自动配置所需的Bean。这一机制基于类路径下的依赖和配置文件,动态决定哪些配置类应该被加载。其技术价值在于极大地简化了Spring应用的配置工作,提升了开发效率。然而,在复杂的微服务架构中,依赖冲突、Bean定义重复或类加载器问题可能导致自动装配过程出现异常,进而引发应用启动失败。具体到工程实践,当整合Spring Session、Redis或引入特定

weixin_30764883的博客 421

MyEclipse Java Web开发全栈配置指南:Tomcat集成与Web Project实战

Java Web开发环境配置是企业级应用落地的第一道门槛,其本质是JVM运行时、Servlet容器(如Tomcat)与IDE工程模型之间的深度协同。理解JDK版本约束、web.xml部署规范、动态Web模块版本匹配等底层原理,才能避免常见编译失败、热部署失效和中文乱码等问题。MyEclipse作为预集成Java EE工具链的IDE,核心价值在于开箱即用的Tomcat适配、Maven内嵌支持与Database Explorer能力,显著降低Web Project从创建、调试到部署的路径复杂度。本文聚焦真实项目

weixin_33997389的博客 600

Maven exec:java 原理与实战:构建即运行的Java执行规范

Maven exec:java 是一种将Java程序执行深度集成到构建生命周期中的核心机制,其本质是复用Maven已解析的依赖树、profile配置和classpath管理能力,实现‘构建即运行’的一致性验证。它不启动新JVM(默认),而是通过当前ClassLoader加载main类并反射调用,从而天然继承pom.xml中声明的JDK版本、属性、依赖范围等上下文。相比手动java -cp或spring-boot:run,它规避了环境漂移风险,支撑本地调试、CI/CD门禁、多环境快速验证等关键场景。本文深入解

weixin_30652491的博客 470

Caused by: java.lang.ClassNotFoundException: org.springframework.core.NativeDetector

最近搭建Springboot-Demo 一顿操作后报错。

知识改变命运,ヾ(◍°∇°◍)ノ゙【求关注】 2871

War包不是ZIP:Java Web应用标准化部署契约解析

War包是Java Web应用在Servlet容器(如Tomcat)中运行的标准化交付形式,其本质是一份由Jakarta EE规范定义的部署契约,涵盖固定目录结构、WEB-INF元数据约束与类加载语义规则。理解这一契约,是解决404、ClassNotFoundException、NoClassDefFoundError等高频部署问题的前提。它决定了资源如何组织、依赖如何打包、类如何被WebApp ClassLoader定位,进而影响Spring MVC、Servlet注解等技术栈的稳定运行。本文聚焦Ecli

weixin_34212762的博客 243

SystemVue 链路预算、仿真分析步骤

使用SystemVue进行链路预算、频谱分析等,相对ADS更全面。

BeCourageable的博客 3832

BIDS数据存储格式介绍与dcm2bids安装与使用

BIDS格式&dcm2bids安装与使用

machinelearning_er的博客 7308

Spring Boot 3应用也能变EXE?实战GraalVM Native Image打包与反射问题处理

本文详细介绍了如何将Spring Boot 3应用通过GraalVM Native Image技术打包为原生可执行文件(EXE),解决反射、动态代理等核心问题。从环境配置到实战优化,提供完整解决方案,帮助开发者实现毫秒级启动和更低资源消耗,显著提升生产环境部署效率。

weixin_30376083的博客 407

FPGA时钟架构解密:从SRCC/MRCC到全局时钟树的实战指南

本文深入解析Xilinx 7系列FPGA时钟架构,从SRCC/MRCC引脚特性到全局时钟树设计,详细介绍了BUFG、BUFMR等关键组件的应用场景和优化策略。通过对比SRCC与MRCC的驱动范围及适用场景,提供低抖动时钟布线技巧和时钟域交叉(CDC)设计方法,帮助工程师构建高性能FPGA时钟系统。

weixin_29191081的博客 1483

Spring Boot 3.4.13 + JDK 17 迁移实战:从架构重置到生产就绪

Spring Boot 和 JDK 是 Java 企业级应用的核心运行时基础。Spring Boot 3.x 强制要求 JDK 17+,标志着从传统 Servlet 容器、Parallel GC 到 Jakarta EE 9 命名空间、ZGC 与模块化 JVM 的代际升级。其本质不仅是版本更新,更是字节码规范(Class File Format 61)、API 契约(javax → jakarta)和内存模型的全面对齐。技术价值体现在低延迟(ZGC P99 <10ms)、强安全(TLS 1.3 原生支持)与

weixin_30653023的博客 426

零基础微信理财通基金实操指南(2026版)

先活下来:保证不亏大钱,再想赚钱慢慢变富:年化10%,7年翻倍,这已经很好了开始比完美重要:今天先存100元到零钱通,就是最好的开始现在打开微信,进入理财通,完成第一步风险测评吧!有任何问题可以随时问,我会用最通俗的方式解释。

老韩的Linux云计算架构师进阶之路 1683

[STM32F103C8T6]W5500+Modbus TCP(HAL库)

本章节是博主学习Modbus TCP所写的一篇文章Modbus TCP是Modbus的一个分支,主要用到网口通信的,在工业上也用的很频繁,我们公司最近的项目就是用的W5500+modbus TCP来和PC端的上位机通信和交互的。虽然这个项目不是我在写代码,但是我都学了Modbus RTU了,那我也抽空学习一下Modbus TCP吧。本次的Modbus TCP不是博主写的,是一个大佬开源的一个W5500写的一个Mobus TCP代码,我在这个基础上自己写了主机读从机多个数据,和主机写从机寄存器的函数。

sinat_58149788的博客 4085

java mvc tomcat_新建 SpringMVC 项目启动 Tomcat 报错

Caused by: java.lang.NoClassDefFoundError: org/springframework/core/io/Resourceat java.lang.Class.getDeclaredFields0(Native Method)at java.lang.Class.privateGetDeclaredFields(Class.java:2583)at java.l...

weixin_29046611的博客 161

高通平台开发系列讲解(USB篇)MBIM协议详解

📢本文主要介绍高通平台USB网卡MBIM协议。

内核笔记 5438

Java深入解析篇七十八之GraalVM 与 Native Image

Graal JIT:适合长时间运行的服务,提供超越 C2 的峰值性能:适合启动敏感、内存受限的场景(Serverless、CLI、微服务)Truffle:实现多语言互操作,扩展 Java 生态边界:原生支持 Native Image,大幅降低迁移成本需要极快启动 + 低内存 → Native Image需要峰值吞吐量 + 动态特性 → JVM + Graal JIT需要多语言嵌入 → GraalVM + Truffle。

萧瑟余晖的博客 441

汇川H5U模拟量输出模拟量转换FC: S_RTI

汇川H5U模拟量输入模拟量转换 FC S_ITR_RXXW_Dor的博客-优快云博客接口中的临时变量,如果优化的可以省去一些,感兴趣的可以自行编写修改下,这里不在举例。至此模拟量输入转换FC编写完成。

RXXW_Dor的博客 6675

详解Xilinx FPGA高速串行收发器GTX/GTP(1)--SerDes和GTX的关系

详解Xilinx FPGA高速串行收发器GTX/GTP(1)--SerDes和GTX的关系

孤独的单刀 4347

Tomcat与IDEA配置本质:Java Web开发环境校准指南

Tomcat不是独立服务器软件,而是符合Servlet规范的Java进程容器;IDEA也非普通编辑器,而是Java运行时环境的协调中枢。其配置本质是建立JDK、Servlet规范、项目结构、端口调度与IDE底层进程管理之间的通信契约。理解这一机制,才能破解常见问题:如tomcat启动后404(多因部署路径与welcome-file不匹配)、Cannot find VM executable(JDK版本与Tomcat规范代际冲突)、端口被占用(IDEA动态覆盖server.xml导致配置错位)。本文聚焦Jav

weixin_33795806的博客 286

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

从零开始搭建大数据处理实战环境

通过网盘分享的文件:YU.csv链接: https://pan.baidu.com/s/1sSrx5xGe8Lq9-MuHA4I00Q 提取码: f749通过网盘分享的文件:文件链接: https://pan.baidu.com/s/1Y3ubq9LohbVEPibKHOjASQ 提取码: 7j6p(一)前置配置完成所有开发环境的安装与配置,包括:VMware虚拟机安装CentOS 7(或者ubuntu16.04)CentOS 7中安装HadoopHiveSqoopMySQL。

2301_81396079的博客 313

深度学习工具包 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")

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

上一篇: getHibernateTemplate 修改和删除操作失败的解决办法
下一篇: Version of activiti database (6.0.0.4) is more recent than the engine (5.13) 的解决办法
TechBro华仔
TechBro华仔 优质创作者: Java技术领域 优质创作者: Java技术领域 领域专家: 后端开发技术领域 领域专家: 后端开发技术领域
博客等级 码龄11年 5万+粉丝 430原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

TechBro华仔

日拱一卒无有尽,功不唐捐终入海

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值