首页 \ 问答 \ 如何在Windows中升级git svn使用的SVN版本?(How can I upgrade the SVN version used by git svn in Windows?)

如何在Windows中升级git svn使用的SVN版本?(How can I upgrade the SVN version used by git svn in Windows?)

我的公司正在将SVN升级到1.7。 检查git svn --version表明正在使用的SVN版本是1.4.6。 我想获得git svn用于接近1.7的SVN版本。 但是,我没有看到更新git svn使用的SVN版本的指令(在Windows中)。

我发现寻找答案的另一个线程似乎是面向Mac OSX用户。 但是,我还没有看到Windows升级的说明。 有谁知道如何在Windows中正确更新git svn的SVN版本?


My company is in the process of upgrading SVN to 1.7. Checking git svn --version shows that the SVN version being used is 1.4.6. I'd like to get the version of SVN that git svn uses up closer to 1.7. However, I've seen no instructions for updating the version of SVN that git svn uses (in Windows).

The other thread I found looking for answers seems to be oriented to a Mac OSX user. I haven't seen Windows instructions for this upgrade, however. Does anyone know how to properly update the SVN version for git svn in Windows?


原文:https://stackoverflow.com/questions/9695303
更新时间:2023-07-15 11:07

最满意答案

RegionDao类型的bean永远不会被Spring IOC容器创建,因此bean不受Spring管理,这使得它无法用于自动装配。 Spring基本上是说,我没有任何bean在控制器中满足这种依赖性。

要使RegionDao由Spring创建和管理,组件将在hibernate配置文件中扫描类的包。

<context:component-scan base-package="package.with.daos"/>

这将在Spring IOC Container中创建一个RegionDao类型的bean,并使其可用于自动装配。


A bean of type RegionDao is never created by the Spring IOC Container, therefore the bean is not managed by Spring, which makes it unavailable for autowiring. Spring is basically saying, I do not have any bean that satisfies this dependency in the controller.

To make RegionDao be created and managed by Spring, component scan the class's package in the hibernate configuration file.

<context:component-scan base-package="package.with.daos"/>

This will create a bean of type RegionDao inside the Spring IOC Container and make it available for autowiring.

相关问答

更多
  • 您需要导入XML配置。 将@ImportResource("foo.xml")添加到@Configuration类。 或者,使用@Bean而不是XML添加Spring Integration配置。 You need to import the XML configuration. Add @ImportResource("foo.xml") to your @Configuration class. Or, add the Spring Integration configuration using @Be ...
  • 你是对的,因为Spring不会自动知道所有类或创建所需的bean。 春天不像魔术一样有效。 我们可以使用注释,但我们仍然需要告诉Spring要创建哪些bean以及如何创建它们。 这就是@Service , @Repository @Controller , @Repository , @Controller发挥作用的地方。 看看这里 。 当您希望SomeClass成为ClassName的依赖项时,您必须明确地让Spring知道SomeClass的bean需要先创建才能作为ClassName的依赖项注入,并且 ...
  • 这个错误很明显,意思是说,你没有定义一个类型为TokenStore的Bean。 Spring Security OAuth的默认配置不会将令牌存储暴露为bean,因此您必须自行完成: @Bean public TokenStore tokenStore() { return new InMemoryTokenStore(); } 在这里使用适当的实现(也可以是JwtTokenStore或RedisTokenStore或您自己的)。 然后创建一个扩展AuthorizationServerConfig ...
  • 您忘记在SampleFTest类中选择配置文件,您应该添加以下行: @ActiveProfiles(profiles = "local") 通过这种方式, SpringTestConfigLocal将被初始化并且SpringTestConfigLocal bean可用 编辑 :我会在.properties文件中添加一个属性,所以我可以使用变量myprofile: @ActiveProfiles(profiles = "${myprofile}") 最后,如果您不想不时更改该值,我会应用一些逻辑来加载一个属 ...
  • 如果在更改拼写错误后仍然出现异常,请确保在配置类之上添加了@PropertySource("classpath:application.properties") If you still get the exception after changing the spelling mistake, please make sure if you have added @PropertySource("classpath:application.properties") on top of the config ...
  • 假设您正在使用java配置,您需要确保在代码中的某个位置使用@Configuration注释类,如下所示: @Bean public ParameterNameDiscoverer parameterNameDiscoverer() { return new DefaultParameterNameDiscoverer(); } 注意:对于您的特定用例,可能有更合适的ParameterNameDiscoverer实现,您应该查看spring文档以获取详细信息。 Assuming you are u ...
  • RegionDao类型的bean永远不会被Spring IOC容器创建,因此bean不受Spring管理,这使得它无法用于自动装配。 Spring基本上是说,我没有任何bean在控制器中满足这种依赖性。 要使RegionDao由Spring创建和管理,组件将在hibernate配置文件中扫描类的包。 这将在Spring IOC Container中创建一个RegionDao类型的bean, ...
  • stackoverflow的问题是因为这段代码而发生的 @Service public class ManagerImpl implements Manager2 { @Autowired private Manager2 dao; } 这种行为的原因是它有一个永远不会解决的递归依赖。 服务需要具有相同bean配方的另一个服务。 另外, @autowired注释用于解析依赖性byType。 这意味着拥有2个带保存类型的实例化bean会导致错误,因为spri ...
  • 您正在混合Spring Boot和基于XML的应用程序上下文。 默认情况下,Spring Boot不会加载应用程序上下文xml文件。 (Spring boot大力推广基于非xml的上下文) 你有2个选择: 不要使用XML,并为所有类注释。 嵌套在@SpringBootApplication包中的所有Spring注释类@SpringBootApplication将被扫描。 这就是Spring Boot应该如何使用的恕我直言。 如果你真的想继续使用xml,请检查一下http://docs.spring.io/s ...
  • 它期望EntityManagerFactory在这种情况下具有特定的名称“entityManagerFactory”。 您定义了自定义名称“emf”。 我假设如果您调整xml文件中的条目,问题就解决了。 It expects that the EntityManagerFactory has a specific name in that case "entityManagerFactory". You defined a custom name "emf". I assume the problem is ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。